Farbverlauf
Übersicht
BlitzBasic
Beginners-Corner
GentlexBetreff: Farbverlauf |
Antworten mit Zitat |
|
|---|---|---|
|
Das ist der source code aber ich möchte das man den zweiten verlauf von weiss nach schwarz macht
Graphics 640,480,16,2 For y=0 To 255 For x=0 To 255 Color x,x,x Plot x,y Next Next mycolor= 255 For x=255 To 510 For y=0 To 255 mycolor=mycolor-1 Mod 255 Color mycolor,mycolor,mycolor Plot x,y Next Next |
||
|
|
SpionAtom |
Antworten mit Zitat |
|---|---|---|
|
Willst du das gleiche wie den linken Farbverlauf, nur umgekehrt? Dann mach es so:
Code: [AUSKLAPPEN] Graphics 640,480,16,2
For y=0 To 255 For x=0 To 255 Color x,x,x Plot x,y Plot 510-x,y Next Next Dass dein Farbverlauf irgendwie gelb wird, liegt wohl daran, dass du das Mod falsch benutzt, es kommen Werte heraus, die nicht in [0-255] liegen. |
||
| os: Windows 10 Home cpu: Intel Core i7 6700K 4.00Ghz gpu: NVIDIA GeForce GTX 1080 | ||
Übersicht
BlitzBasic
Beginners-Corner
Powered by phpBB © 2001 - 2006, phpBB Group
