Cubeshape (Image generator for sq-1)

primarycuber

Regular
Joined
Aug 22, 2014
Messages
49
Cubeshape (Yet another image generator for sq-1)

What is this:
Yet another image generator for square-1.
The source code can be found here.

How to use it?
Code:
https://cubeshape.herokuapp.com/cubeshape/[shape]
Where [shape] is formed from c (corner) and e (edge) characters.
The default image size is 200px, but can be set via the size query parameter.

The default color is dark grey, but everything (including side stickers) can be set via the colors query parameter.

Code:
Color codes:
d: darkgrey
w: white
y: yellow
o: orange
r: red
g: green
b: blue

If colors.length <= shape.lengt only the pieces will be colored, else you need to provide 3 colors for corners (color, left side, right side) and 2 colors for edges (color, side).
You can use any non-alphanumeric character as a separator between the color blocks.

Examples:

default colors, default size
Code:
https://cubeshape.herokuapp.com/cubeshape/eeccccc
eeccccc


size set to 350
Code:
https://cubeshape.herokuapp.com/cubeshape/eeeecceeee?size=350
eeeecceeee


colored pieces
Code:
https://cubeshape.herokuapp.com/cubeshape/eccecece?colors=wwyyyyyy
eccecece


colored pieces with side stickers
Code:
https://cubeshape.herokuapp.com/cubeshape/ceceecec?&colors=yrb_yb_ybo_yo_wr_wr_g_wg_wgo
ceceecec


parity
Code:
https://cubeshape.herokuapp.com/cubeshape/cececece?&colors=yrb_yb_ybo_yo_yog_yr_ygr_yg
cececece
 
Last edited:
Back
Top