-
Notifications
You must be signed in to change notification settings - Fork 0
Methods
Convert a matrix into a list.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| matrix | list[list[Any]] | A matrix of integer |
returns : list[Any]

Get the distance from the center of an even or odd matrix.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| matrix | list[list[int]] | A matrix of integer |
returns : list[list[int]]

Convert a matrix into a list.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| matrix | list[list[Any]] | A matrix of integer | ||
| n | int | an integer corresponding to the number of rotations by 90 |
returns : list[list[Any]]

Create a cube centered on the top face using the face attributes imported when the object was created.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| No Parameter |
returns : list[list[int]]

Create a cube centered on the north face using the matRot function and the face attributes imported when the object was created.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| No Parameter |
returns : list[list[int]]

Create a cube centered on the south face using the matRot function and the face attributes imported when the object was created.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| No Parameter |
returns : list[list[int]]

Create a cube centered on the east face using the matRot function and the face attributes imported when the object was created.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| No Parameter |
returns : list[list[int]]

Create a cube centered on the west face using the matRot function and the face attributes imported when the object was created.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| No Parameter |
returns : list[list[int]]

Create a rainbow sequence on the north face using the matDist function and the face attributes imported when the object was created.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| No Parameter |
returns : list[list[int]]
Update variable RAIMBOW_COLOR using RAIMBOW_INCREASE variable every tick.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| No Parameter |
returns : None
Update variable BRIGHTNESS using BRIGHTNESS_INCREASE variable every tick.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| No Parameter |
returns : None
Returns the view centered on the face matrix and the (x, y) coordinates of a key.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| key | int | the integer corresponding to a key value |
returns : list[list[list[int]], tuple(int)]
Recursive function to create the ripple effect.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| tab | int | the view centered on a face matrix | ||
| actual | list[tuple(int)] | list of coordinates pixel to update | ||
| previous | list[list[tuple(int)]] | Yes | [] | sequence of all list of all steps of update |
| counter | int | Yes | 0 | steps of the effect |
returns : list[list[list[int]], tuple(int)]