User Tools

Site Tools


4rpl:commands:rastercolor

Index
<- Raster

RasterColor

RasterColor(<-color)

Description

Sets the default color for SetRasterC. This setting is associated with the raster itself.

Examples

once
   V4(1 0 0 1) ->red
	  V4(0 0 0 1) ->black
	  V4(1 1 1 1) ->white
	  V4(0 1 0 1) ->green
 
	  CreateList ->square
	  do(25 0)
		  <-black ->square[I]
	  loop
 
	  ShowRaster(true)
endonce
 
ClearRaster(V4(RandFloat RandFloat RandFloat 1))
 
do(5000 0)
	  SetRaster(GetRandMapCell <-green)
loop
 
RasterColor(<-red)
do(5000 0)
	  SetRasterC(GetRandMapCell)
loop
 
do(100 0)
	  @Blit
loop
 
:Blit
	  BlitRaster(GetRandMapCell <-square 5)

Index

4rpl/commands/rastercolor.txt · Last modified: 2021/03/12 14:54 by Karsten75