luacolors is a color utility library for Lua.
Contains color conversion functions (including RGB-to-XYZ, RGB-to-Lab, RGB-to-HSL, etc.) and all the CSS web colors.
Github
Readme
Search found 482 matches
- Thu May 08, 2014 9:26 am
- Forum: Libraries and Tools
- Topic: luacolors: A color utility library
- Replies: 1
- Views: 1883
- Wed May 07, 2014 6:09 am
- Forum: Libraries and Tools
- Topic: Oysi's 3D Rendering & Physics Engine
- Replies: 127
- Views: 86461
Re: 3D Rigid Body Physics
This is awesome!
Reminds me of my own 3D engine which I discontinued because it sucked. I don't have my graphics card yet though, so I can't do anything that requires shaders.
Also,
Reminds me of my own 3D engine which I discontinued because it sucked. I don't have my graphics card yet though, so I can't do anything that requires shaders.
Also,
- Tue May 06, 2014 9:43 am
- Forum: Support and Development
- Topic: Small Useful Functions
- Replies: 127
- Views: 53709
Re: Small extra functions
Here are two functions that approximate sine and cosine (haven't benchmarked it yet though) : local TPI = math.pi*2 local PI = math.pi local math_abs = math.abs local math_floor = math.floor function fastSin(x) local tpi = TPI local pi = PI local t = math_abs(-2*math_floor(x/tpi+0.75) + x/pi + 0.5) ...
- Mon May 05, 2014 10:28 am
- Forum: General
- Topic: [Forum Game] Potato Count!
- Replies: 7
- Views: 2571
Re: [Forum Game] Potato Count!
Limang potato!
I don't even know what I'm doing anymore.
I don't even know what I'm doing anymore.
- Wed Apr 30, 2014 9:34 am
- Forum: General
- Topic: Code Doodles!
- Replies: 197
- Views: 275052
Re: Code Doodles!
Here's my second one: Galaxies! :D Press spacebar to change galaxies. Galaxies.png Code messy and mostly uncommented due to laziness. -- code doodle: galaxies -- by phoenix enero local screen = {} math.randomseed(os.time())math.random()math.random() local NOISESEED = math.random()*60000 function lov...
- Tue Apr 22, 2014 8:37 am
- Forum: General
- Topic: I would like help with my basic platforming stuff
- Replies: 8
- Views: 4567
Re: I would like help with my basic platforming stuff
viewtopic.php?f=3&t=9Liquid Tungsten wrote:Another off-topic: What's with this whole "Obey" thing? I don't really get it.
- Mon Apr 21, 2014 2:39 am
- Forum: Support and Development
- Topic: How do I aimbot?
- Replies: 12
- Views: 6495
Re: How do I aimbot?
I think this wikipedia article would be a good read.
- Sun Apr 20, 2014 2:53 am
- Forum: Support and Development
- Topic: Small Useful Functions
- Replies: 127
- Views: 53709
Re: Small extra functions
... I also made a small function to get the average value of numbers: function math.med( ... ) local args = { ... } local ret = 0 for i = 1, #args do ret = ret + args[i] end return ret/#args end The average is called mean (or arithmetic mean) not median. The median picks the midpoints of a (sorted)...
- Fri Apr 18, 2014 9:02 am
- Forum: General
- Topic: The new LOVE2D home page
- Replies: 14
- Views: 7446
Re: The new LOVE2D home page
Konami Code still works.
- Sun Apr 13, 2014 1:04 am
- Forum: Support and Development
- Topic: how exactly dt works?
- Replies: 5
- Views: 2984
Re: how exactly dt works?
Like Jeeper said, limiting frames isn't all that useful. It would be useful however, to limit frame rates if your fps goes too low (say, 6 FPS.) If that happens, you can do three things: Ignore FPS drop (this would make dt large, and thus may make your frame-by-frame calculations inaccurate.) Limit ...