getVBL: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 29: Line 29:
}}
}}
[[Category:Miscellaneous Function]]
[[Category:Miscellaneous Function]]
[[Category:VBL Function]]

Revision as of 20:46, 10 August 2017

getVBL() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.3b90
This function saves Vision Blocking Layer (VBL) shapes.

Usage

drawVBL(shape,format)

This function retrieves the found shape in the given shape.


Parameters

  • shape - A json object as described in drawVBL().
  • format - Boolean. 0 returns a json object similar to the one you feed it. 1 returns an array of coordinates which covers the VBL found in the area


Example:

[h:rectangle = "{'shape':'rectangle','x':50,'y':50,'w':100,'h':200,'r':45,'fill':1,'thickness':1,'scale':0}"]
[r:vblData   = getVBL(rectangle , 0)]



See Also