X Media:getPixel

From GiderosMobile
Revision as of 06:01, 10 February 2020 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''<translate>Available since</translate>:''' Gideros 2016.1<br/> '''<translate>Class</translate>:''' Media<br/> === Description === R...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: Gideros 2016.1
Class: Media

Description

Returns r, g, b, a values of pixel at x,y coordinate (RGB are in range of 0 to 255, alpha is in range of 0 to 1).

Media:getPixel(x, y)

Parameters

x: (number) x pixel coordinate
y: (number) y pixel coordinate