createCube {rcube}R Documentation

Creating cube size NxNxN

Description

Creates a cube object with empty moves and color scheme information

Usage

createCube(N = 3, mode = "normal", scheme = c("orange", "yellow",
  "blue", "white", "green", "red"))

Arguments

N

integer - size of cube. Default value is 3, and minimum is 1.

mode

string "normal" (default) or "octa" or "void". There are also are also available learning modes. Use keywords: "cross","first layer", "first two layers", "corners", "edges" to obtain your mode. For example "cross,centers", "corners" or "edges and centers". Default color scheme is the same as defined in parameter with added gray color.

scheme

string vector - colour scheme for plotting cube. Name of colours should be given in specified order: front, top, right, bottom, left, back. In learning mode there is possibility to define 12 colors (standard 6 colors and 6 which are default gray).

Default value is c("orange","yellow","blue","white","green","red")

Value

Cube class object

Examples

# Create 3x3x3 cube with original color scheme:
cube <- createCube()
# Create 14x14x14 cube with original color scheme:
cube <- createCube(N = 14)
# Create 3x3x3 cube with "japanese" color scheme:
cube <- createCube(scheme = c("green","white","red","blue","orange","yellow"))
# Create 3x3x3 learning cubes:
c <- createCube(mode = "cross and centers")
c2 <- createCube(mode = "first layer and centers")
c3 <- createCube(mode = "first two layers")
# Create cube with coloured corners and edges:
c <- createCube(N = 4, mode = "corners and edges")

[Package rcube version 0.5 Index]