Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6581 | leency | 1 | --PALETTE Set: C64 Palette (16 colors) |
2 | --by Richard Fhager |
||
3 | --http://hem.fyristorg.com/dawnbringer/ |
||
4 | |||
5 | -- Copyright 2010 Richard Fhager |
||
6 | -- |
||
7 | -- This program is free software; you can redistribute it and/or |
||
8 | -- modify it under the terms of the GNU General Public License |
||
9 | -- as published by the Free Software Foundation; version 2 |
||
10 | -- of the License. See |
||
11 | |||
12 | |||
13 | OK,clean = inputbox("C64 Palette:", "Remove old palette", 0, 0,1,0 |
||
14 | ); |
||
15 | |||
16 | |||
17 | |||
18 | colors = {{0, 0, 0}, -- 0 Black |
||
19 | {62, 49,162}, -- 1 D.Blue |
||
20 | {87, 66, 0}, -- 2 Brown |
||
21 | {140, 62, 52}, -- 3 D.Red |
||
22 | {84, 84, 84}, -- 4 D.Grey |
||
23 | {141, 72,179}, -- 5 Purple |
||
24 | {144, 95, 37}, -- 6 Orange |
||
25 | {124,112,218}, -- 7 B.Blue |
||
26 | {128,128,128}, -- 8 Grey |
||
27 | {104,169, 65}, -- 9 Green |
||
28 | {187,119,109}, -- 10 B.Red |
||
29 | {122,191,199}, -- 11 Cyan |
||
30 | {171,171,171}, -- 12 B.Grey |
||
31 | {208,220,113}, -- 13 Yellow |
||
32 | {172,234,136}, -- 14 B.Green |
||
33 | {255,255,255} -- 15 White |
||
34 | } |
||
35 | |||
36 | |||
37 | if OK == true then |
||
38 | |||
39 | for c = 1, #colors, 1 do |
||
40 | setcolor(c-1,colors[c][1],colors[c][2],colors[c][3]) |
||
41 | end |
||
42 | |||
43 | |||
44 | if clean == 1 then |
||
45 | for c = #colors+1, 256, 1 do |
||
46 | setcolor(c-1,0,0,0) |
||
47 | end |
||
48 | end |
||
49 | |||
50 | end |