Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
32 bit color map
#1
Code:
screen 20,32,,1

for x=0 to 255:for y = 0 to 255
r=r+1
if r=256 then g=g+1:r=0
if g=256 then b=b+1:g=0
pset (x,y),rgb(r,g,b)
next:next

This doesnt work because there are 3 rgb values and only 2 coordinates that only equal 65536 total colors, there should be a total of 16777216 colors available. but if i simply increase the x and y max values to allow more room for more colors than the colors loop themselves. So how can i get all of the colors in here...i assume i still need higher x and y coordinates, otherwise there wont be enough room.
url=http://www.smithcosoft.com]SmithcoSoft Creations[/url]
"If you make it idiot proof, someone will make a better idiot" - Murphy's Law
Reply


Messages In This Thread
32 bit color map - by SSC - 03-27-2005, 02:59 PM
32 bit color map - by steven_basic - 03-27-2005, 07:14 PM
32 bit color map - by SSC - 03-28-2005, 04:31 AM
32 bit color map - by steven_basic - 03-28-2005, 05:42 AM
32 bit color map - by SSC - 03-28-2005, 06:24 AM
32 bit color map - by steven_basic - 03-28-2005, 06:47 AM
32 bit color map - by SSC - 03-28-2005, 06:58 AM
32 bit color map - by adosorken - 03-28-2005, 07:50 AM
32 bit color map - by steven_basic - 03-28-2005, 07:54 AM
32 bit color map - by SSC - 03-28-2005, 10:45 AM
32 bit color map - by steven_basic - 03-28-2005, 09:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)