palette: why doesn't this work?

new topic     » topic index » view thread      » older message » newer message

include get.e
include graphics.e
object x
integer g, key
clear_screen()
g = graphics_mode(261)
x = palette(GREEN, {63, 53, 0}) -- gold color
bk_color(GREEN)
key = wait_key()
g = graphics_mode(-1)

The background should be the color of the palette, not the original.
What's going on?  So how am I supposed to create custom colored
backgrounds?  Draw a square that covers the whole screen?

Alan

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu