Index
<- Raster

BlitRaster

BlitRaster(<-x <-y <-list <-width)

Description

Blits a list of colors to the raster. The list will be treated as a flattened array mapping to a rectangular 'sprite' that is 'width' wide. The blit will happen at the specified location in the raster and the bottom left of the sprite will start at that location.

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