.macro PNGtoKOALA(PNGpicture,BMPData,Chardata,D800data,BGC) {
:PNGtoKOALA("320x200.png", $2000, $5000, $6000, $7000)
// VICE C64 PALETTE .struct RGB {r,g,b} // Based on standard vice colors .const black = RGB( 0, 0, 0) // #$000000 .const white = RGB(255,255,255) // #$FFFFFF .const red = RGB(137, 64, 54) // #$894036 .const cyan = RGB(122,191,199) // #$7ABFC7 .const purple = RGB(138, 70,174) // #$8A46AE .const green = RGB(104,169, 65) // #$68A941 .const blue = RGB( 62, 49,162) // #$3E31A2 .const yellow = RGB(208,220,113) // #$D0DC71 .const l_brown = RGB(144, 95, 37) // #$905F25 .const d_brown = RGB( 92, 71, 0) // #$5C4700 .const l_red = RGB(187,119,109) // #$BB776D .const d_grey = RGB( 85, 85, 85) // #$555555 .const grey = RGB(128,128,128) // #$808080 .const l_green = RGB(172,234,136) // #$ACEA88 .const l_blue = RGB(124,112,218) // #$7C70DA .const l_grey = RGB(171,171,171) // #$ABABAB .const Black = black.r * 65536 + black.g * 256 + black.b .const White = white.r * 65536 + white.g * 256 + white.b .const Red = red.r * 65536 + red.g * 256 + red.b .const Cyan = cyan.r * 65536 + cyan.g * 256 + cyan.b .const Purple = purple.r * 65536 + purple.g * 256 + purple.b .const Green = green.r * 65536 + green.g * 256 + green.b .const Blue = blue.r * 65536 + blue.g * 256 + blue.b .const Yellow = yellow.r * 65536 + yellow.g * 256 + yellow.b .const L_brown = l_brown.r * 65536 + l_brown.g * 256 + l_brown.b .const D_brown = d_brown.r * 65536 + d_brown.g * 256 + d_brown.b .const L_red = l_red.r * 65536 + l_red.g * 256 + l_red.b .const D_grey = d_grey.r * 65536 + d_grey.g * 256 + d_grey.b .const Grey = grey.r * 65536 + grey.g * 256 + grey.b .const L_green = l_green.r * 65536 + l_green.g * 256 + l_green.b .const L_blue = l_blue.r * 65536 + l_blue.g * 256 + l_blue.b .const L_grey = l_grey.g * 65536 + l_grey.g * 256 + l_grey.b