Variable | Description | Value Range | Default | Comment |
---|---|---|---|---|
. | script extension | .png | .gif | .jpg | .svg | .tiff | .ico | . | 183 |The extension used in the script url dictates the format of the image generated. For example: 184 | visiting /visualcube.jpg 185 | will create a jpeg image. |
fmt | Image Format | png | gif | jpg | svg | tiff | ico | 187 | | Used as an alternative to using an image extension as above. |
pzl | Puzzle Type | 1 to | 189 | | Values from N=(1 to ) represent an NxNxN cube. Currently only regular cubes are modelled |
size | Size of generated image | 0 to 1024 | 191 | Images produced are square, so size specifies both width and height of the final image in pixels. | |
view | Special View | plan|trans | 193 | | The view parameter allows special views to facilitate interpretation of different case aspects.
194 | plan rotates cube to expose U face, while showing the sides of the top layer 195 | trans sets the cube base colour to transparent, and hides any masked or undefined faces |
stage | Stage Mask | ( fl | f2l | ll | cll | ell | oll | ocll | oell | coll | ocell | wv | 197 | vh | els | cls | cmll | cross | f2l_3 | f2l_2 | f2l_sm | f2l_1 | f2b | line | 2x2x2 | 2x2x3 )-?[xyz2']* 198 | | 199 | | Sets parts of the cube to be masked from being coloured. The stage identifier is optionally followed by a rotation algorithm. For example: stage=cross-x2 would rotate the cross mask so that the cross appears on the U-layer rather than the D-layer |
r | Rotation Sequence | ([xyz]-?[0-9][0-9]?[0-9]?)+ | 201 | | Each entry in the sequence is an axis (x, y or z), followed by the 202 | number of degrees to rotate in a clockwise direction. Negative values are permitted. 203 | Any number of rotations is possible. |
State Definitions | ||||
alg | Algorithm to apply | [UDLRFBudlrfbMESxyz'2 ]* | 206 | | The system applies the algorithm to the cube and displays the resulting state. 207 | NOTE: Currently unavailable for 4x4 cubes or above |
case | Algorithm to solve case | [UDLRFBudlrfbMESxyz'2 ]* | 209 | | The system displays the cube state which is solved by applying the algorithm
210 | (algorithm inverse). 211 | NOTE: Currently unavailable for 4x4 cubes or above |
fd | Facelet Definition | [udlrfbnot]* | 213 |215 | | Defines the cube state in terms of facelet positions.
216 | u stands for a 'U' facelet (and likewise with rfdlb).
217 | Defining a cube state using this method means the cube will be coloured
218 | according to the scheme defined by the sch variable.
219 | Three special characters are used to indicate the following: 220 | n: This is a blank face (coloured grey) 221 | o: This is an 'oriented' face (coloured silver) 222 | t: This is a transparent face, and will not appear on the cube 223 | |
fc | Facelet Colours | [ndlswyrobgmpt]* | 225 |227 | | Defines the cube state in terms of facelet colours,
228 | as an alternative to using fd. fc
229 | takes precedence over fd if both are defined. 230 | See the 'sch' variable below for an explanation of the colour codes. 231 | |
Cube Style | ||||
sch | Colour Scheme | 234 |[ndlswyrobgmp]*6 OR 235 | Comma separated list containing 6x one of: 236 | black | dgrey | grey | silver | white | yellow | red | orange | blue 237 | | green | purple | pink | [0-9a-fA-F]*3 | [0-9a-fA-F]*6 238 | | 239 | | The order of the colours specified represent the faces in this order: 240 | U R F D L B 241 | The letters used in shorthand notation map to the generic 242 | face colours as follows: n=black (noir), d=dark grey, l=light grey, 243 | s=silver (lighter grey), w=white, y=yellow, r=red, o=orange, b=blue, g=green, 244 | m=purple (magenta), p=pink, t=transparent 245 | Where longhand notation is used, 3 or 6-digit hex codes can be used to specify 246 | the exact colour. for example C80000 would be a dark red colour. 247 | |
bg | Background Colour of image | [ndlswyrobgmpt] OR 249 | black | dgrey | grey | silver | white | yellow | red | orange | blue 250 | | green | purple | pink | [0-9a-fA-F]*3 | [0-9a-fA-F]*6 251 | |
252 | The value t represents transparent, and is only valid for png and gif images. | |
cc | Cube Colour | see above | This is the cube's base colour. | |
co | Cube Opacity | 0 to 99 | 255 | | Setting this value causes the base cube to be transparent. 256 | It means facelets at the back of the cube will also be rendered. 257 | A value of 0 gives complete transparency. |
fo | Facelet Opacity | 0 to 99 | 259 | | Setting this value causes the facelets to be rendered with transparency. |
dist | Projection Distance | 1 to 100 | 261 | | Controls the distance of the cube from the perspective of the viewer. |
Added Features | ||||
arw | Arrow Definition | 264 |Comma separated list in the form: 265 | <a_from><a_to>(<a_via>)?(-i[0-9+])?(-s[0-9+])?(-<colour>)? 266 | Where <a_x> is: [URFDLB][0-9]+ 267 | And: <colour> is as defined in the 'sch' variable. |
268 | -i10-s10 | 269 |Defines a list of arrows to be drawn on the cube. 270 | Each arrow is defined with a minimum of two sticker identifiers to indicate 271 | where it should be drawn from and to. The optional third sticker identifier 272 | indicates which sticker it should pass through if a curved arrow is to be drawn. 273 | Arrows may be scaled so that they fall short, or past the centre of each facelet 274 | by specifying the s (scale) parameter after a dash. 275 | Where curved arrows are drawn the degree to which the arrow deviates from a straight 276 | path can be specified via the i (influence) parameter. 277 | Arrows may also optionally be assigned individual colours, by using a - 278 | followed by a colour code. 279 | Example: arw=U0U2,U2U8,U8U0,R6R2R0-s8-i5-yellow 280 | 281 | The above example draws 4 arrows. The first three use default colour and scale 282 | and point to stickers on the U-face. The fourth arrow 283 | points from sticker #6 to sticker #2 on the R-face, and is curved 284 | so that it passes through sticker #0. The arrow is slightly shortened to 8/10 285 | of its full length, and the influence of the pass through sticker in generating 286 | the curve is set to 5/10. 287 | |
ac | Default Arrow Colour | [ndlswyrobgmp] OR 289 | black | dgrey | grey | silver | white | yellow | red | orange | blue 290 | | green | purple | pink | [0-9a-fA-F]*3 | [0-9a-fA-F]*6 291 | |
292 | grey | Arrows will be this colour by default, unless overridden by a 293 | colour specified for each arrow in the arw variable. |