This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
component:hologram [2014/07/10 09:07] vexatos |
component:hologram [2014/08/14 16:02] sangar |
||
---|---|---|---|
Line 13: | Line 13: | ||
- `set(x:number, y:number, z:number, value:number or boolean)` | - `set(x:number, y:number, z:number, value:number or boolean)` | ||
Set the value for the specified position. | Set the value for the specified position. | ||
- | - `fill(x:number, z:number, height:number, value:number)` | + | - `fill(x:number, z:number[, minY:number], maxY:number, value:number)` |
- | Fills a column to the specified height with the specified value. All voxels below and including the specified height will be set, all voxels above will be unset. | + | Fills an interval in the specified column column with the specified value. Will overwrite only the voxels in the interval. If `minY` is omitted it defaults to 1. The two interval ends are inclusive. |
+ | //Note:// Before 1.3.3 there was no `minY` argument and all voxels below and including the specified height would be set, all voxels above would be unset. | ||
- `copy(x:number, z:number, sx:number, sz:number, tx:number, tz:number)` | - `copy(x:number, z:number, sx:number, sz:number, tx:number, tz:number)` | ||
Copies an area of columns by the specified translation. | Copies an area of columns by the specified translation. | ||
Line 40: | Line 41: | ||
Further examples: | Further examples: | ||
+ | |||
- [Holo Flow](https://github.com/OpenPrograms/Sangar-Programs/blob/master/holo-flow.lua) | - [Holo Flow](https://github.com/OpenPrograms/Sangar-Programs/blob/master/holo-flow.lua) | ||
This program generates a heightmap and 'moves' across it over time, creating the effect of a flowing terrain. | This program generates a heightmap and 'moves' across it over time, creating the effect of a flowing terrain. |