LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Gfill help!

Root / Programming Questions / [.]

Retrogamer123Created:
Things are different from petit computer, so I don't no how to use bgfill, but I think gfill does the same thing, yet I cannot get it to show any color but white. How could I change the color to,say, brown?

The easiest way I know is to make a rgb variable and then do the gfill
C1=RGB(100,25,25)

GFILL 0,0,200,400,C1
Doing this from memory something feels wrong with that code....

Colors aren't in palettes anymore, everything is explicitly RGB like the guy above me said.

Things are different from petit computer, so I don't no how to use bgfill, but I think gfill does the same thing, yet I cannot get it to show any color but white. How could I change the color to,say, brown?
Colors in SmileBASIC have changed a lot and is no longer pallets. Instead you use another command, RGB.
RGB(How much red,How much green,How much blue) 'Returns the amount of colors mixed up.  (Think mixing 3 colors of paint)
RGB(255,0,0) 'Returns bright red.
RGB(0,255,0) 'Returns bright green.
RGB(0,0,255) 'Returns bright blue.
RGB(255,255,255) 'Returns white.
RGB(10,10,10) 'Returns black
RGB(0,0,0) 'Returns nothing (Like an eraser.)
Also, the max number you can put in each value is 255. And the lower the number, the darker. So RGB(100,0,0) would return darker red. If you don't want to use RGB though, it is easier to do:
GFILL 0,0,200,400,#GREEN
'Or
GFILL 0,0,200,400,#RED
'etc.