)
)
(background
- (top_color 50 50 50)
- (bottom_color 50 50 50)
+ (top_color 0.2 0.2 0.2)
+ (bottom_color 0.2 0.2 0.2)
)
(leveltime
(time 300)
)
)
(background
- (top_color 0 0 0)
- (bottom_color 0 0 0)
+ (top_color 0.0 0.0 0.0)
+ (bottom_color 0.0 0.0 0.0)
)
(leveltime
(time 500)
)
)
(background
- (top_color 0 0 255)
- (bottom_color 255 255 255)
+ (top_color 0.0 0.0 1.0)
+ (bottom_color 1.0 1.0 1.0)
)
(leveltime
(time 180)
)
)
(background
- (top_color 255 255 255)
- (bottom_color 0 0 255)
+ (top_color 1.0 1.0 1.0)
+ (bottom_color 0.0 0.0 1.0)
)
(leveltime
(time 250)
)
)
(background
- (top_color 88 88 100)
- (bottom_color 88 88 100)
+ (top_color 0.35 0.35 0.4)
+ (bottom_color 0.35 0.35 0.4)
)
(leveltime
(time 250)
)
)
(background
- (top_color 150 200 255)
- (bottom_color 150 200 255)
+ (top_color 0.6 0.8 1.0)
+ (bottom_color 0.6 0.8 1.0)
)
(leveltime
(time 300)
)
)
(background
- (top_color 60 70 110)
- (bottom_color 0 10 120)
+ (top_color 0.2 0.25 0.4)
+ (bottom_color 0.0 0.05 0.5)
)
(leveltime
(time 300)
)
)
(background
- (top_color 200 150 50)
- (bottom_color 0 150 150)
+ (top_color 0.8 0.6 0.2)
+ (bottom_color 0.0 0.6 0.6)
)
(leveltime
(time 300)
;; Converted by Ondra Hosek
+;; FIXME: Doesn't seem to have a normal exit
(supertux-level
(version 2)
(name (_ "...Where Everything Is Possible"))
)
)
(background
- (top_color 150 200 255)
- (bottom_color 150 200 255)
+ (top_color 0.6 0.8 1.0)
+ (bottom_color 0.6 0.8 1.0)
)
(leveltime
(time 300)
)
)
(background
- (top_color 0 0 0)
- (bottom_color 204 0 0)
+ (top_color 0.0 0.0 0.0)
+ (bottom_color 0.8 0.0 0.0)
)
(leveltime
(time 300)
)
)
(background
- (top_color 100 150 255)
- (bottom_color 255 255 255)
+ (top_color 0.4 0.6 1.0)
+ (bottom_color 1.0 1.0 1.0)
)
(leveltime
(time 300)
)
)
(background
- (top_color 100 150 255)
- (bottom_color 255 255 255)
+ (top_color 0.4 0.6 1.0)
+ (bottom_color 1.0 1.0 1.0)
)
(leveltime
(time 400)
)
)
(background
- (top_color 100 100 255)
- (bottom_color 255 255 255)
+ (top_color 0.4 0.4 1.0)
+ (bottom_color 1.0 1.0 1.0)
)
(leveltime
(time 200)
)
)
(background
- (top_color 0 0 0)
- (bottom_color 0 0 100)
+ (top_color 0.0 0.0 0.0)
+ (bottom_color 0.0 0.0 0.4)
)
(leveltime
(time 300)
)
)
(background
- (top_color 0 0 0)
- (bottom_color 0 0 100)
+ (top_color 0.0 0.0 0.0)
+ (bottom_color 0.0 0.0 0.4)
)
(leveltime
(time 300)
)
)
(background
- (top_color 100 150 255)
- (bottom_color 255 255 255)
+ (top_color 0.4 0.6 1.0)
+ (bottom_color 1.0 1.0 1.0)
)
(leveltime
(time 200)
)
)
(background
- (top_color 0 0 0)
- (bottom_color 150 0 0)
+ (top_color 0.0 0.0 0.0)
+ (bottom_color 0.6 0.0 0.0)
)
(leveltime
(time 300)
bkgd_top_color.push_back(gradient_top.red);
bkgd_top_color.push_back(gradient_top.green);
bkgd_top_color.push_back(gradient_top.blue);
- bkgd_bottom_color.push_back(gradient_top.red);
- bkgd_bottom_color.push_back(gradient_top.green);
- bkgd_bottom_color.push_back(gradient_top.blue);
+ bkgd_bottom_color.push_back(gradient_bottom.red);
+ bkgd_bottom_color.push_back(gradient_bottom.green);
+ bkgd_bottom_color.push_back(gradient_bottom.blue);
writer.write_float_vector("top_color", bkgd_top_color);
writer.write_float_vector("bottom_color", bkgd_bottom_color);
}
type = GRADIENT;
gradient_top = top;
gradient_bottom = bottom;
+
+ if (gradient_top.red > 1.0 || gradient_top.green > 1.0
+ || gradient_top.blue > 1.0 || gradient_top.alpha > 1.0)
+ std::cerr << "Warning: top gradient color has values above 1.0." << std::endl;
+ if (gradient_bottom.red > 1.0 || gradient_bottom.green > 1.0
+ || gradient_bottom.blue > 1.0 || gradient_bottom.alpha > 1.0)
+ std::cerr << "Warning: bottom gradient color has values above 1.0." << std::endl;
delete image;
image = NULL;
blue = vals[2];
if(vals.size() > 3)
alpha = vals[3];
+ else
+ alpha = 1.0;
}
float red, green, blue, alpha;
const Color& top = gradientrequest->top;
const Color& bottom = gradientrequest->bottom;
+ glDisable(GL_TEXTURE_2D);
glBegin(GL_QUADS);
glColor4f(top.red, top.green, top.blue, top.alpha);
glVertex2f(0, 0);
glVertex2f(SCREEN_WIDTH, SCREEN_HEIGHT);
glVertex2f(0, SCREEN_HEIGHT);
glEnd();
+ glEnable(GL_TEXTURE_2D);
delete gradientrequest;
}