The Lambda Lab
/
projects
/
raymarcher.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Colours are now Vectors, added rainbow pigment.
[raymarcher.git]
/
Colours.lua
diff --git
a/Colours.lua
b/Colours.lua
index
8a71cbe
..
eec5bb5
100644
(file)
--- a/
Colours.lua
+++ b/
Colours.lua
@@
-1,12
+1,15
@@
--- Some pre-defined colours
--- Some pre-defined colours
+require "Vector"
+local V = Vector
+
Colours = {
Colours = {
- red = {1,0,0},
- green = {0,1,0},
- blue = {0,0,1},
- yellow = {1,1,0},
- magenta = {1,0,1},
- cyan = {0,1,1}
+ red =
V.new
{1,0,0},
+ green =
V.new
{0,1,0},
+ blue =
V.new
{0,0,1},
+ yellow =
V.new
{1,1,0},
+ magenta =
V.new
{1,0,1},
+ cyan =
V.new
{0,1,1}
}
return Colours
}
return Colours