nathan42100
Give miinaturvat Points!
Administrator
Hero Member
Karma: +32/-2
Offline
Posts: 1161
934.18 points View InventorySend Money to nathan42100
|
 |
« on: October 09, 2006, 03:55:28 PM » |
|
Converted this to PSP Lua. Contains over 600 colors. Download it hereNOTE: grey and gray are interchangable NOTE2: Disregard the color codes with spaces in them aboveDO NOT QUOTE THIS POST
|
|
|
|
|
Logged
|
 All of my work is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. dn ʎɐʍ sıɥʇ Help support my computer projects! 
|
|
|
|
|
|
|
|
|
nathan42100
Give miinaturvat Points!
Administrator
Hero Member
Karma: +32/-2
Offline
Posts: 1161
934.18 points View InventorySend Money to nathan42100
|
 |
« Reply #3 on: October 10, 2006, 03:38:25 AM » |
|
actually i copied it off a website and changed it
|
|
|
|
|
Logged
|
 All of my work is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. dn ʎɐʍ sıɥʇ Help support my computer projects! 
|
|
|
rikardo_92
Full Member
 
Karma: +0/-0
Offline
Posts: 188
0.00 points View InventorySend Money to rikardo_92
|
 |
« Reply #4 on: October 10, 2006, 08:25:06 AM » |
|
Very good and very useful!!! Thanks, this can also be used to C/C++
|
|
|
|
|
Logged
|
  Currently working on: ...
|
|
|
|
|
|
|
eggwonder
Full Member
 
Karma: +10/-10
Offline
Posts: 181
100681.19 points View InventorySend Money to eggwonder
RAWR
|
 |
« Reply #7 on: November 08, 2006, 12:47:44 PM » |
|
colors arent hard... in lua. its just 255,255,255=white or 0,0,0=black 255,0,255= should be purple. if you use windows use paint and make custom colors. then take the ### red,### green,### blue and just use the #s as your color.
btw it shows up forbidden for me. any idea why?
|
|
|
|
« Last Edit: November 11, 2006, 08:58:45 AM by eggwonder »
|
Logged
|
|
|
|
nathan42100
Give miinaturvat Points!
Administrator
Hero Member
Karma: +32/-2
Offline
Posts: 1161
934.18 points View InventorySend Money to nathan42100
|
 |
« Reply #8 on: November 08, 2006, 01:17:17 PM » |
|
fixed
|
|
|
|
|
Logged
|
 All of my work is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. dn ʎɐʍ sıɥʇ Help support my computer projects! 
|
|
|
SG57
Sr. Member
  
Karma: +7/-37
Offline
Posts: 474
1140.80 points View InventorySend Money to SG57
|
 |
« Reply #9 on: November 09, 2006, 12:49:48 AM » |
|
If you manually went and converted that - you need a better way to spend your spare time lol. Im sure you could create a program that could do it for you in less time it would take to do it manually (grab 3, 3 digit numbers from TXT file for each line and give it a name) And ya this can be converted to C very easily 
|
|
|
|
|
Logged
|
|
|
|
nathan42100
Give miinaturvat Points!
Administrator
Hero Member
Karma: +32/-2
Offline
Posts: 1161
934.18 points View InventorySend Money to nathan42100
|
 |
« Reply #10 on: November 09, 2006, 12:43:31 PM » |
|
actually, it was just a matter of finding things and replacing...the only time consuming thing was finding the ones with spaces.
|
|
|
|
|
Logged
|
 All of my work is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. dn ʎɐʍ sıɥʇ Help support my computer projects! 
|
|
|
Sleepy
C/C++ Developer
Full Member
Karma: +98/-55
Offline
Posts: 192
0.00 points View InventorySend Money to Sleepy
|
 |
« Reply #11 on: January 12, 2007, 02:51:53 PM » |
|
It looks like it must've taken quite a long while. But this is very useful, so thank you for your time well spent! I don't even use lua, I'll probably just convert this to C since you've already done about half the work (a little more than half actually). Thanks Nathan!
|
|
|
|
|
Logged
|
|
|
|
nathan42100
Give miinaturvat Points!
Administrator
Hero Member
Karma: +32/-2
Offline
Posts: 1161
934.18 points View InventorySend Money to nathan42100
|
 |
« Reply #12 on: January 15, 2007, 10:50:14 AM » |
|
just open the file and do a search and replace on the Color.new and the ).
|
|
|
|
|
Logged
|
 All of my work is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. dn ʎɐʍ sıɥʇ Help support my computer projects! 
|
|
|
SG57
Sr. Member
  
Karma: +7/-37
Offline
Posts: 474
1140.80 points View InventorySend Money to SG57
|
 |
« Reply #13 on: February 08, 2007, 11:25:17 AM » |
|
I would just replace every thing at the start of each line, with a '#define', than replace all '= ' with nothing (yes thats a space after it), than replace all 'Color.new(' with 'RGB(', if you dont have the RGB macro that converts RGB values to a long value (0x000000 = black, 24 bit i blieve), than check the 4th tutorial, i believe that is the graphics one (?) that has the macro
|
|
|
|
|
Logged
|
|
|
|
|
|
|