LuaAPI.wiki
changeset 553 5faf837d73e5
parent 552 27add396065d
child 554 b77ffc789732
equal deleted inserted replaced
552:27add396065d 553:5faf837d73e5
   547 <code language="lua">    vgear = AddVisualGear(...)
   547 <code language="lua">    vgear = AddVisualGear(...)
   548     DeleteVisualGear(vgear) -- Delete the newly created visual gear.</code>
   548     DeleteVisualGear(vgear) -- Delete the newly created visual gear.</code>
   549 
   549 
   550 
   550 
   551 === <tt>!SetVisualGearValues(vgUid, X, Y, dX, dY, Angle, Frame, FrameTicks, State, Timer, Tint)</tt> ===
   551 === <tt>!SetVisualGearValues(vgUid, X, Y, dX, dY, Angle, Frame, FrameTicks, State, Timer, Tint)</tt> ===
   552 This allows manipulation of many of the visual gear values. Calling `GetVisualGearValues` first is recommended on most visual gears unless you are controlling all the key values. In the case of `vgtCircle`, the visual gear values are mapped as follows.  X, Y: position.  State: radius. Timer: Thickness.  FrameTicks: pulsation speed (0 to disable).  dX, dY: min/max pulsation opacity (0-255). Tint: colour, RGBA.
   552 This allows manipulation of many of the visual gear values. Calling `GetVisualGearValues` first is recommended on most visual gears unless you are controlling all the key values. In the case of `vgtCircle`, the visual gear values are mapped as follows.  X, Y: position.  State: radius. Timer: Thickness.  !FrameTicks: pulsation speed (0 to disable).  dX, dY: min/max pulsation opacity (0-255). Tint: colour, RGBA.
   553 Most visual gears require little to no modification of parameters.
   553 Most visual gears require little to no modification of parameters.
   554 
   554 
   555 Example:
   555 Example:
   556 
   556 
   557 <code language="lua">  -- set a circle to position 1000,1000 pulsing from opacity 20 to 200 (8%-78%), radius of 50, 3px thickness, bright red.
   557 <code language="lua">  -- set a circle to position 1000,1000 pulsing from opacity 20 to 200 (8%-78%), radius of 50, 3px thickness, bright red.