np: Colour Node Position

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/colourNodePosition.R

Description

Returns the colour node position. You need to use the node position function first.

Usage

1
np(rank = 3, satPercent = 0.5, seed = 1)

Arguments

rank

This is the rank of the maze.

satPercent

Percentage of saturation.

seed

To always get the same position for a local computer.

Details

This function will not sample from the first node position. If you consider sampling from the first node, then in javascript, the summing of the black dotes need to begin from 1 rather than 0. To keep it simple, always ensure that the first node is not sampled as a black dot.

Value

A 'np' class which will be used for other functions in the package.

Author(s)

Aiden Loe

See Also

mazeEst, genPathSeed

Examples

1
np(rank=3,satPercent=0.5,seed=1)

Aidenloe/mazeGen documentation built on Dec. 6, 2017, 12:25 a.m.