Skip to content

Commit d1a876f

Browse files
committed
Why did I do that stupid thing? That's better...
1 parent 478c12d commit d1a876f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

color_multi_tool.jinja

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@
136136
137137
SAMPLE USAGE:
138138
{% from 'color_multi_tool.jinja' import rgb2xy %}
139-
{% set _rgb2zy = rgb2xy(_nrgb).split(",") | list -%}
140-
{{ [_rgb2zy[0]|float|round(3),_rgb2zy[1]|float|round(3)] }}
139+
{% set _rgb2xy = rgb2xy(_nrgb).split(",") | list -%}
140+
{{ [_rgb2xy[0]|float|round(3),_rgb2xy[1]|float|round(3)] }}
141141
142142
REMEMBER:
143143
Everything returned from a macro template is a string, so for
@@ -437,7 +437,7 @@
437437
{%- set _hs2rgb = hs2rgb(hsl).split(",") | list -%}
438438
{%- set _hs2rgb_list = [_hs2rgb[0]|int(0),_hs2rgb[1]|int(0),_hs2rgb[2]|int(0)] -%}}
439439
{%- set _rgb2xy = rgb2xy(_hs2rgb_list).split(",") | list -%}
440-
{%- set _rgb2xy_list = [_rgb2zy[0]|float(0)|round(3),_rgb2zy[1]|float(0)|round(3)] -%}
440+
{%- set _rgb2xy_list = [_rgb2xy[0]|float(0)|round(3),_rgb2xy[1]|float(0)|round(3)] -%}
441441
{#- Calculated output -#}
442442
{%- set X = _rgb2xy_list[0] | float(0.0) | round(3) -%}
443443
{%- set Y = _rgb2xy_list[1] | float(0.0) | round(3) -%}
@@ -1102,9 +1102,9 @@ macro random rgb list: {% set _rrgb = random_rgb().split(",") | list -%}
11021102
macro name to rgb list: {% set _nrgb_name = random_name() %}
11031103
{%- set _nrgb = name2rgb(_nrgb_name).split(",") | list -%}
11041104
{{- _nrgb_name }} {{ [_nrgb[0]|int(0),_nrgb[1]|int(0),_nrgb[2]|int(0)] }}
1105-
macro rgb to xy list: {% set _rgb2zy = rgb2xy(_nrgb).split(",") | list -%}
1106-
{{ [_rgb2zy[0]|float(0)|round(3),_rgb2zy[1]|float(0)|round(3)] }}
1107-
macro xy to rgb list: {% set _xy2rgb = xy2rgb(_rgb2zy).split(",") | list -%}
1105+
macro rgb to xy list: {% set _rgb2xy = rgb2xy(_nrgb).split(",") | list -%}
1106+
{{ [_rgb2xy[0]|float(0)|round(3),_rgb2xy[1]|float(0)|round(3)] }}
1107+
macro xy to rgb list: {% set _xy2rgb = xy2rgb(_rgb2xy).split(",") | list -%}
11081108
{{ [_xy2rgb[0]|int(0),_xy2rgb[1]|int(0),_xy2rgb[2]|int(0)] }}
11091109
11101110
macro hs to rgb list: {% set _hs2rgb = hs2rgb(_rhs).split(",") | list -%}

0 commit comments

Comments
 (0)