URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena/sandbox
ChangeLog:
2008-05-07 Caroline Vigouroux <vigour_c(a)epita.fr>
Add values of literals.
* literal/brown.hh, literal/lime.hh,
literal/magenta.hh, literal/orange.hh,
literal/pink.hh, literal/purple.hh,
literal/teal.hh, literal/violet.hh,
literal/yellow.hh: Add values.
---
brown.hh | 4 ++++
lime.hh | 4 ++++
magenta.hh | 4 ++++
orange.hh | 4 ++++
pink.hh | 4 ++++
purple.hh | 4 ++++
teal.hh | 4 ++++
violet.hh | 4 ++++
yellow.hh | 4 ++++
9 files changed, 36 insertions(+)
Index: trunk/milena/sandbox/vigouroux/literal/teal.hh
===================================================================
--- trunk/milena/sandbox/vigouroux/literal/teal.hh (revision 1932)
+++ trunk/milena/sandbox/vigouroux/literal/teal.hh (revision 1933)
@@ -17,6 +17,10 @@
/// Type of literal teal.
struct teal_t : public Literal<teal_t>
{
+ value::rgb8 operator()() const
+ {
+ return value::rgb8(0,128,128);
+ }
};
Index: trunk/milena/sandbox/vigouroux/literal/lime.hh
===================================================================
--- trunk/milena/sandbox/vigouroux/literal/lime.hh (revision 1932)
+++ trunk/milena/sandbox/vigouroux/literal/lime.hh (revision 1933)
@@ -17,6 +17,10 @@
/// Type of literal lime.
struct lime_t : public Literal<lime_t>
{
+ value::rgb8 operator()() const
+ {
+ return value::rgb8(50,205,50);
+ }
};
Index: trunk/milena/sandbox/vigouroux/literal/brown.hh
===================================================================
--- trunk/milena/sandbox/vigouroux/literal/brown.hh (revision 1932)
+++ trunk/milena/sandbox/vigouroux/literal/brown.hh (revision 1933)
@@ -17,6 +17,10 @@
/// Type of literal brown.
struct brown_t : public Literal<brown_t>
{
+ value::rgb8 operator()() const
+ {
+ return value::rgb8(150,75,0);
+ }
};
Index: trunk/milena/sandbox/vigouroux/literal/pink.hh
===================================================================
--- trunk/milena/sandbox/vigouroux/literal/pink.hh (revision 1932)
+++ trunk/milena/sandbox/vigouroux/literal/pink.hh (revision 1933)
@@ -17,6 +17,10 @@
/// Type of literal pink.
struct pink_t : public Literal<pink_t>
{
+ value::rgb8 operator()() const
+ {
+ return value::rgb8(250,218,221);
+ }
};
Index: trunk/milena/sandbox/vigouroux/literal/violet.hh
===================================================================
--- trunk/milena/sandbox/vigouroux/literal/violet.hh (revision 1932)
+++ trunk/milena/sandbox/vigouroux/literal/violet.hh (revision 1933)
@@ -17,6 +17,10 @@
/// Type of literal violet.
struct violet_t : public Literal<violet_t>
{
+ value::rgb8 operator()() const
+ {
+ return value::rgb8(0,255,0);
+ }
};
Index: trunk/milena/sandbox/vigouroux/literal/purple.hh
===================================================================
--- trunk/milena/sandbox/vigouroux/literal/purple.hh (revision 1932)
+++ trunk/milena/sandbox/vigouroux/literal/purple.hh (revision 1933)
@@ -17,6 +17,10 @@
/// Type of literal purple.
struct purple_t : public Literal<purple_t>
{
+ value::rgb8 operator()() const
+ {
+ return value::rgb8(128,0,128);
+ }
};
Index: trunk/milena/sandbox/vigouroux/literal/orange.hh
===================================================================
--- trunk/milena/sandbox/vigouroux/literal/orange.hh (revision 1932)
+++ trunk/milena/sandbox/vigouroux/literal/orange.hh (revision 1933)
@@ -17,6 +17,10 @@
/// Type of literal orange.
struct orange_t : public Literal<orange_t>
{
+ value::rgb8 operator()() const
+ {
+ return value::rgb8(255,127,0);
+ }
};
Index: trunk/milena/sandbox/vigouroux/literal/yellow.hh
===================================================================
--- trunk/milena/sandbox/vigouroux/literal/yellow.hh (revision 1932)
+++ trunk/milena/sandbox/vigouroux/literal/yellow.hh (revision 1933)
@@ -17,6 +17,10 @@
/// Type of literal yellow.
struct yellow_t : public Literal<yellow_t>
{
+ value::rgb8 operator()() const
+ {
+ return value::rgb8(255,255,0);
+ }
};
Index: trunk/milena/sandbox/vigouroux/literal/magenta.hh
===================================================================
--- trunk/milena/sandbox/vigouroux/literal/magenta.hh (revision 1932)
+++ trunk/milena/sandbox/vigouroux/literal/magenta.hh (revision 1933)
@@ -17,6 +17,10 @@
/// Type of literal magenta.
struct magenta_t : public Literal<magenta_t>
{
+ value::rgb8 operator()() const
+ {
+ return value::rgb8(255, 0, 255);
+ }
};