Class: PXON

PXON()

Class representing a PXON file.

Constructor

new PXON()

Source:

Members

artist

Set the artist who created this PXON.

Source:

artist

Returns the artist who created this PXON.

Source:

Returns the copyright for this PXON.

Source:

Set the copyright for this PXON.

Source:

dataURL

Returns the dataURL for this PXON.

Source:

dataURL

Set the dataURL for this PXON.

Source:

dateTime

Returns the date of creation for this PXON.

Source:

dateTime

Set the date of creation for this PXON.

Source:

imageDescription

Returns the imageDescription for this PXON.

Source:

imageDescription

Set the imageDescription for this PXON.

Source:

software

Returns the software that created this PXON.

Source:

software

Set the software who created this PXON.

Source:

userComment

Returns the userComment for this PXON.

Source:

userComment

Set the userComment for this PXON.

Source:

Methods

export() → {object}

Export the PXON data as an object.

Source:
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.

Source:
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.

Source:

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.

Source: