Skip to content

Commit f3861fb

Browse files
committed
clarified luminance settings
1 parent 6199008 commit f3861fb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/img2scad.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,11 @@ <h1>Convert image to OpenSCAD array</h1>
212212

213213
<fieldset>
214214
<legend>Appearance</legend>
215+
<div style="float:right; border:1px solid green; padding:4px; text-align:center; font-size:smaller;">See:<br><a href="https://en.wikipedia.org/wiki/Luma_(video)" target="_blank">Luma</a></div>
215216
<input type="radio" name="grayModel" value="ntsc" checked><label for "grayModel" class="tooltip"> NTSC grayscale formula
216-
<span class="tooltiptext">0.299R + 0.587G + 0.114B<br>Based on average human perception of color luminance</span></label><br>
217-
<input type="radio" name="grayModel" value="linear"><label for="grayModel" class="tooltip"> Linear luminance
218-
<span class="tooltiptext">0.2126R + 0.7152G + 0.0722B<br>Used by OpenSCAD surface()</span></label>
217+
<span class="tooltiptext">NTSC Y&prime; = 0.299R + 0.587G + 0.114B<br>Rec. 601: Average human perception of color luminance</span></label><br>
218+
<input type="radio" name="grayModel" value="linear"><label for="grayModel" class="tooltip"> sRGB linear luminance
219+
<span class="tooltiptext">sRGB Y&prime; = 0.2126R + 0.7152G + 0.0722B<br>Rec. 709: Digital HD, used by OpenSCAD surface()</span></label>
219220

220221
<div style="margin-top:8px;">
221222
<label><input type="checkbox" id="invertBrightness"> Invert brightness</label>

0 commit comments

Comments
 (0)