This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generates a set of flexible CSS Custom Properties | |
@mixin generateHSLCustomProperties($propertyName, $hue, $saturation, $lightness) { | |
// $safeName is necessary because $name can be a color literal (like 'red'). | |
// Sass doesn't like that, so we convert it to a string. | |
$safeName: '' + $propertyName; | |
--#{$safeName}-hue: calc(#{$hue} + var(--hue-shift)); | |
--#{$safeName}-saturation: #{$saturation}; | |
--#{$safeName}-lightness: #{$lightness}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//tiled render code | |
//by glEnd2 | |
/* | |
to use create a new Tilemap object with the path to your .json file exported from tiled. | |
will do the rest from there. | |
to get renderable canvas use Tilemap.getImage(); | |
rendering is done at creation so that there is less overhead later on. | |
*/ |