Methods
correctColor(context, width, height)
Correct the color of each pixel on the canvas.
Parameters:
| Name | Type | Description |
|---|---|---|
context |
CanvasRenderingContext2D | Canvas context |
width |
number | Canvas width |
height |
number | Canvas height |
- Source:
detectBrowser(ua) → {string}
Detect browser name.
Parameters:
| Name | Type | Description |
|---|---|---|
ua |
string | User agent (lower case) |
Returns:
Browser name
- Type
- string
detectEnv() → {Object}
Detect OS and browser name.
Returns:
OS and Browser information
- Type
- Object
detectOS(ua) → {string}
Detect OS name.
Parameters:
| Name | Type | Description |
|---|---|---|
ua |
string | User agent (lower case) |
Returns:
OS name
- Type
- string