Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
March 21, 2010, 02:13:24 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Check out the Code Section!
Home Help Search Shop Login Register
Digg This!
Pages: [1] 2
Print
Author Topic: Colors.lua for all your coloring needs  (Read 6987 times)
nathan42100
Give miinaturvat Points!
Administrator
Hero Member
*

Karma: +31/-2
Offline Offline

Posts: 1158
804.49 points

View Inventory
Send Money to nathan42100


View Profile WWW
« on: October 09, 2006, 03:55:28 PM »

Converted this to PSP Lua. Contains over 600 colors. Download it here


NOTE: grey and gray are interchangable
NOTE2: Disregard the color codes with spaces in them above

DO 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!



bronxbomber92
Give miinaturvat Points!
All-Around Dev
Hero Member
*

Karma: +16/-2
Offline Offline

Posts: 664
3697.59 points

View Inventory
Send Money to bronxbomber92

View Profile
« Reply #1 on: October 09, 2006, 04:14:03 PM »

Nice, this wll be usefull!
Logged

СУ&am
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 97
0.00 points

View Inventory
Send Money to СУ&am

View Profile
« Reply #2 on: October 09, 2006, 09:03:20 PM »

Heh.  Ported from the X11 rgb.txt.  I was just looking at that last night.   Very Happy
Logged
nathan42100
Give miinaturvat Points!
Administrator
Hero Member
*

Karma: +31/-2
Offline Offline

Posts: 1158
804.49 points

View Inventory
Send Money to nathan42100


View Profile WWW
« 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 Offline

Posts: 188
0.00 points

View Inventory
Send Money to rikardo_92


View Profile
« 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: ...
-Val0_Blo0d-
Newbie
*

Karma: +3/-1
Offline Offline

Posts: 15
407.06 points

View Inventory
Send Money to -Val0_Blo0d-

LUA Coder


View Profile
« Reply #5 on: November 07, 2006, 11:17:01 PM »

Its says forbidden..
Logged
2.6,CRACKED!
Full Member
***

Karma: +0/-37
Offline Offline

Posts: 111
3864.87 points

View Inventory
Send Money to 2.6,CRACKED!


View Profile
« Reply #6 on: November 08, 2006, 09:33:52 AM »

ye, permission is off, sorry, I kinda needed some RGB codes, but I can look elsewhere.
Logged
eggwonder
Full Member
***

Karma: +10/-10
Offline Offline

Posts: 181
100681.19 points

View Inventory
Send Money to eggwonder

RAWR


View Profile
« 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: +31/-2
Offline Offline

Posts: 1158
804.49 points

View Inventory
Send Money to nathan42100


View Profile WWW
« 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 Offline

Posts: 474
1140.80 points

View Inventory
Send Money to SG57


View Profile
« 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 Smile
Logged
nathan42100
Give miinaturvat Points!
Administrator
Hero Member
*

Karma: +31/-2
Offline Offline

Posts: 1158
804.49 points

View Inventory
Send Money to nathan42100


View Profile WWW
« 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 Offline

Posts: 192
299.57 points

View Inventory
Send Money to Sleepy


View Profile WWW
« 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

Creator and programmer of funcLib
[funcLib Home]
nathan42100
Give miinaturvat Points!
Administrator
Hero Member
*

Karma: +31/-2
Offline Offline

Posts: 1158
804.49 points

View Inventory
Send Money to nathan42100


View Profile WWW
« 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 Offline

Posts: 474
1140.80 points

View Inventory
Send Money to SG57


View Profile
« 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
roe-ur-boat
Look who bought all the excess user titles :O
Full Member
***

Karma: +27/-87
Offline Offline

Posts: 124
9999999.99 points

View Inventory
Send Money to roe-ur-boat

View Profile
« Reply #14 on: March 26, 2007, 05:19:45 AM »

Heres a chart of around 280 colors. It's handy for different shades of the one color.  Smile
http://img164.imageshack.us/img164/7376/rgbhextripletcolorchartws7.png
Logged
Pages: [1] 2
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.18 seconds with 38 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com