Skip to content

Commit

Permalink
First draft to implement new hsl color system
Browse files Browse the repository at this point in the history
hsl II

working hsl

changing method, error lighter?

changes with errors...

hsl running and old pen blocks too

basic hsl changis I

Draft of HSV converters

finishing first draft

fixing rgba alpha setter

Working... still alpha setter pending for Paint Editor

First draft of HSl Color System

Deleting branch doc file from repo
  • Loading branch information
jguille2 committed Mar 27, 2017
1 parent 16bbf42 commit def2478
Show file tree
Hide file tree
Showing 3 changed files with 272 additions and 164 deletions.
15 changes: 14 additions & 1 deletion blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,19 @@ SyntaxElementMorph.prototype.labelPart = function (spec) {
case '%p':
part = new ReporterSlotMorph(true);
break;
case '%colorParams':
part = new InputSlotMorph(
null, // text
false, // numeric?
{
'hue' : ['hue'],
'saturation' : ['saturation'],
'shade' : ['shade'],
'opacity' : ['opacity']
},
true // read-only
);
break;

// code mapping (experimental)

Expand Down Expand Up @@ -1460,7 +1473,6 @@ SyntaxElementMorph.prototype.labelPart = function (spec) {
true // read-only
);
break;

// symbols:

case '%turtle':
Expand Down Expand Up @@ -2121,6 +2133,7 @@ SyntaxElementMorph.prototype.endLayout = function () {
%f - round function slot, unevaluated if replaced,
%r - round reporter slot
%p - hexagonal predicate slot
%colorParams - drop-down for pen color params
rings:
Expand Down
Loading

0 comments on commit def2478

Please sign in to comment.