GetMapMaskColour
RgbColour = GetMapMaskColour(MapIndex)
 
Parameters:

    MapIndex = The index of the map you wish to query
Returns:

    RgbColour= The blocks transparent colour in RGB format
 

      The GetMapMaskColour function returns the block sets RGB mask colour (the transparent colour) from a selected map.



FACTS:


      * The colour is returned in RGB format, use the RGBR, RGBG & RGBB functions to caluclate the R,G,B levels if need be





Mini Tutorial:


      The example creates a MAP and block set, then displays the related information about the created block set.

  
; Get a free Map index
  MyMap=GetFreeMap()
  
; Create a map with provision for 5 levels
  CreateMap MyMap,5
  
; Create some blank blocks for this map
  CreateMapGFX MyMap,30,20,10,RGB(0,0,255)
  
; Display the info about this maps created block set
  Print "Number OF Blocks:"+Str$(GetMapBlocks(mymap))
  Print "Block Status:"     +Str$(GetMapBlockStatus(MyMap))
  Print "Block Width:"     +Str$(GetMapBlockWidth(MyMap))
  Print "Block Height:"     +Str$(GetMapBlockHeight(MyMap))
  Print "Block Mask Colour:"     +Str$(GetMapMaskColour(MyMap))
  
; Display the screen and wait for a key to be pressed
  Sync
  WaitKey
  
  



This example would output.

  
  Number OF Blocks:10
  Block Status:1
  Block Width:30
  Block Height:20
  Block Mask Colour:255
  

 
Related Info: CreateMapGfx | GetMapBlockStatus | LoadMapGfx | MakeMapGfx :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com