all repos — openbox @ db705f406ccd85dc170beb89f0f35fd3398a0a46

openbox fork - make it a bit more like ryudo

all grads done
Derek Foreman manmower@gmail.com
commit

db705f406ccd85dc170beb89f0f35fd3398a0a46

parent

f9505b23b7796219ecc73ad97c68764356797163

2 files changed, 54 insertions(+), 2 deletions(-)

jump to
M render/gradient.crender/gradient.c

@@ -621,7 +621,59 @@ glVertex2i(x, y);

glEnd(); break; case Background_Pyramid: -printf("pyramid\n"); + ar = (pr + sr) / 2.0; + ag = (pg + sg) / 2.0; + ab = (pb + sb) / 2.0; + glBegin(GL_TRIANGLES); + glColor3f(pr, pg, pb); + glVertex2i(x, y); + glColor3f(sr, sg, sb); + glVertex2i(x+w/2, y+h/2); + glColor3f(ar, ag, ab); + glVertex2i(x, y+h/2); + + glVertex2i(x, y+h/2); + glColor3f(sr, sg, sb); + glVertex2i(x+w/2, y+h/2); + glColor3f(pr, pg, pb); + glVertex2i(x, y+h); + + glVertex2i(x, y+h); + glColor3f(sr, sg, sb); + glVertex2i(x+w/2, y+h/2); + glColor3f(ar, ag, ab); + glVertex2i(x+w/2, y+h); + + glVertex2i(x+w/2, y+h); + glColor3f(sr, sg, sb); + glVertex2i(x+w/2, y+h/2); + glColor3f(pr, pg, pb); + glVertex2i(x+w, y+h); + + glVertex2i(x+w, y+h); + glColor3f(sr, sg, sb); + glVertex2i(x+w/2, y+h/2); + glColor3f(ar, ag, ab); + glVertex2i(x+w, y+h/2); + + glVertex2i(x+w, y+h/2); + glColor3f(sr, sg, sb); + glVertex2i(x+w/2, y+h/2); + glColor3f(pr, pg, pb); + glVertex2i(x+w, y); + + glVertex2i(x+w, y); + glColor3f(sr, sg, sb); + glVertex2i(x+w/2, y+h/2); + glColor3f(ar, ag, ab); + glVertex2i(x+w/2, y); + + glVertex2i(x+w/2, y); + glColor3f(sr, sg, sb); + glVertex2i(x+w/2, y+h/2); + glColor3f(pr, pg, pb); + glVertex2i(x, y); + glEnd(); break; case Background_PipeCross: glBegin(GL_TRIANGLES);
M render/test.crender/test.c

@@ -51,7 +51,7 @@ root = RootWindow (ob_display, DefaultScreen (ob_display));

render_startup(); look = appearance_new(Surface_Planar, 0); - look->surface.data.planar.grad = Background_PipeCross; + look->surface.data.planar.grad = Background_Pyramid; look->surface.data.planar.secondary = color_parse("Yellow"); look->surface.data.planar.primary = color_parse("Blue"); look->surface.data.planar.interlaced = FALSE;