X Media:setPixel

From GiderosMobile
Revision as of 17:37, 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 === S...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: Gideros 2016.1
Class: Media

Description

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

Media:setPixel(x, y, r, g, b, a)

Parameters

x: (number) x pixel coordinate
y: (number) y pixel coordinate
r: (number) red value between 1 and 255
g: (number) green value between 1 and 255
b: (number) blue value between 1 and 255
a: (number) alpha value between 0 and 1