- Copyright:
- (c) Copyright 2013 - 2016 AV Digital Media Ltd. All Rights Reserved. No unauthorized copying, distribution or modification to this code in whole or in part is permitted without the express permission of AV Digital Media Ltd (UK).
Properties:
Name | Type | Description |
---|---|---|
base64Radix |
String | The base64Radix to use when encoding and decoding |
Access via aim.encode - This is a simple encoding utility for base64 and hexidecimal RGB values
Methods
(protected, static) b64dec(data)
Decodes a string from base64
Parameters:
Name | Type | Description |
---|---|---|
data |
String | The string to decode from base64 |
Returns:
This will return a string
(protected, static) b64enc(data)
Encodes a string to base64
Parameters:
Name | Type | Description |
---|---|---|
data |
String | The string to encode into base64 |
Returns:
This will return a base64 encoded string
(protected, static) componentToHex(data)
Converts a component value to a hexidecimal, this will take the form of an RGB color object
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | The data object to convert |
Returns:
This will return a hexidecimal value
(protected, static) rgbToHex(R, B, G)
Convert an RGB value to a Hexidecimal value
Parameters:
Name | Type | Description |
---|---|---|
R |
Number | The RED colour number |
B |
Number | The BLUE colour number |
G |
Number | The GREEN colour number |
Returns:
This will return the new formatted hexidecimal value
(protected, static) rgbToHex(R, B, G)
Convert a Hexidecimal value to an RGB value
Parameters:
Name | Type | Description |
---|---|---|
R |
number | The RED colour number |
B |
number | The BLUE colour number |
G |
number | The GREEN colour number |
Returns:
This will return the new RGB value as an object literal with r g b properties