User Tools

Site Tools


4rpl:commands:setrasterc

Index
<- Raster

SetRasterC

SetRasterC(<-x <-y)

Description

Sets a pixel in the raster to the color specified previously by RasterColor. The origin is in the lower left of the raster.

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/setrasterc.txt · Last modified: 2021/03/12 14:54 by Karsten75