~~NOTOC~~ <=[[4rpl:start| Index]] :!: Available in version 1.3 and later. ====== SetThemeOverlayRectPixels ====== SetThemeOverlayRectPixels(<-overlayNumber <-targetX <-targetY <-width <-height <-color) ===== Description ===== Sets a rectangle of pixels to 'color' in the theme overlay texture. The overlayNumber should be 0 or 1.\\ The targetX and targetY parameters specify the lower left corner of the rectangle.\\ The width and height specify the size of the rectangle.\\ ===== Examples ===== $pixelsPerCell:1 #Clear SetThemeOverlayRectPixels(0 0 0 <-textureWidth <-textureHeight Vector0) 10 0 do if (RandFloat 0.5 <) <-R ->color else <-Y ->color endif SetThemeOverlayRectPixels(0 RandInt(0 <-textureWidth) RandInt(0 <-textureHeight) RandInt(1 100) RandInt(1 100) <-color) loop :once GetMapSize ->mapSizeZ ->mapSizeX <-mapSizeX <-pixelsPerCell * ->textureWidth <-mapSizeZ <-pixelsPerCell * ->textureHeight CreateThemeOverlay(0 <-textureWidth <-textureHeight Vector0) SetThemeOverlayEnabled(0 true) SetThemeOverlayPointFilter(0 true) V4(1 0 0 1) ->R V4(1 1 0 1) ->Y <=[[4rpl:start| Index]]