WikiPendium

(beta)

Setcolor()

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-13-59-156-144.us-east-2.compute.amazonaws.com
Ceci est une version archivée de Setcolor() à 2006-09-09 13:15:52.

Setcolor()


WORD Setcolor( idx, new )

WORD idx, new;

Setcolor() changes one color in the palette of the video chip.

Opcode

7 (0x07)

Availability

All TOS versions.

Parameters

idx is the number of color to change (0-15 or 0-255 on TT/Falcon in 256 colour mode).
new is a 16bit value holding the new color value to use, encoded as follows:
Bits 11-8 Bits 7-4 Bits 3-0
Red component Green component Blue component

If new is set to COL_INQUIRE (-1) then the current value is returned.

Binding

	move.w	#new,-(sp)
	move.w	#idx,-(sp)
	move.w	#$7,-(sp)
	trap	#14
	addq.l	#6,sp


See Also

VsetRGB()?, EsetColor()?, SetPalette()?

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]