| |
|
|
Jörg Sellmeyer | an Loop, The The Grundfarben indicating: CompileMarkSeparation
Proc ChangeRGB
Parameters n%
Declare r%,g%,b%
r% = TestBit(n%,0) * 255
g% = TestBit(n%,1) * 255
b% = TestBit(n%,2) * 255
Cls Rgb(R%,G%,B%)
Print "Der Hexwert ist:",Hex$(RGB(R%,G%,B%))," ",n%
Print "Die einzelnen Farben sind:",R%,G%,B%
EndProc
Randomize
Cls Rnd($FFFFFF)
WhileLoop 0,7
WaitInput
ChangeRGB(&Loop)
Wend
Print "Das sind die Grundfarben und deren Mischfarben"
WaitInput
|
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 10/29/11 ▲ |
|
|
|
|
| I faith You could instead of Case TestBit(n%,0):r% = 255 and clear r%,g%,b% simply r%=testbit(n%,0)*255 write. |
|
|
| |
|
|
|
Jörg Sellmeyer | good idea! Have already The whole Time consider, How I the rather hinbekomme. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 10/29/11 ▲ |
|
|
|