The list of available environments. (Don't create your own instances - use Sketch.environments)
Name | Return Type | Description |
---|---|---|
last | Environment Read-only | Returns the last environment |
current | Environment Read/Write | Returns the current environment |
this[index] | Environment Read-only | Returns the environment at the given index |
count | number Read-only | The number of available environments |
Gets an Environment by name
Returns: Environment (The environment, or nil if no environment has that name)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
name | string | The name of the environment to get |
env = Sketch.environments:ByName("Pistachio")