Methods
Type Definitions
object
# PNGMetadata
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
title |
string |
<optional> |
The images title |
|
author |
string |
<optional> |
The images author |
|
description |
string |
<optional> |
The images description |
|
copyright |
string |
<optional> |
The images copyright info |
|
creationTime |
string | number | Date |
<optional> |
Date.now() | The images creation timestamp |
software |
string |
<optional> |
"github.com/matmen/ImageScript vX.X.X" | The software used to create this image |
disclaimer |
string |
<optional> |
A disclaimer for the image |
|
warning |
string |
<optional> |
A warning for the image |
|
source |
string |
<optional> |
The images source |
|
comment |
string |
<optional> |
A comment for the image |
# colorFunction(x, y) → {number}
Parameters:
Name | Type | Description |
---|---|---|
x |
number | |
y |
number |
pixel color
number