Module function reference

touching_colour

A reference entry for touching_colour

Module function · Graphics/Collision

touching_colour (number window, object sprite, colour colour) ⇒ boolean

Returns true when a sprite touches the specified colour in the graphics window.

YASS
$matches = Graphics::Collision::touching_colour($window, 0, 0, 0.5, 0.5, 0, "#517")