Members
artist
Set the artist who created this PXON.
artist
Returns the artist who created this PXON.
copyright
Returns the copyright for this PXON.
copyright
Set the copyright for this PXON.
dataURL
Returns the dataURL for this PXON.
dataURL
Set the dataURL for this PXON.
dateTime
Returns the date of creation for this PXON.
dateTime
Set the date of creation for this PXON.
imageDescription
Returns the imageDescription for this PXON.
imageDescription
Set the imageDescription for this PXON.
software
Returns the software that created this PXON.
software
Set the software who created this PXON.
userComment
Returns the userComment for this PXON.
userComment
Set the userComment for this PXON.
Methods
export() → {object}
Export the PXON data as an object.
Returns:
Hash with all PXON properties.
- Type
- object
getPixel(x, y) → {object}
Get a pixel by its coordinates.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
x |
number | 0 | The x value. |
y |
number | 0 | The y value. |
Returns:
Returns a single pixel's x
, y
, size
, and color
.
- Type
- object
import(exif, pxif, dataURL)
Import the PXON data as an object.
Parameters:
Name | Type | Description |
---|---|---|
exif |
object | The PXON exif data. |
pxif |
object | The PXON pxif data. |
dataURL |
string | The dataURL value. |
setPixel(x, y, color, size)
Set a pixel.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
x |
number | 0 | The x value. |
y |
number | 0 | The y value. |
color |
string | rgba(255, 255, 255, 1) | The hex color value. |
size |
number | 1 | The width and height, in real pixels. |