Skip to content

Conversation

@griffpatch
Copy link
Contributor

Requires fix to scratch-render before this will work.
See:
6f5acfee7b961d71237f1fd50bb3d5a5139c527e

Requires fix to scratch-render before this will work (see:
6f5acfee7b961d71237f1fd50bb3d5a5139c527e)
@thisandagain thisandagain modified the milestone: February 16 Jan 27, 2017
@thisandagain thisandagain self-assigned this Jan 27, 2017
Copy link
Contributor

@thisandagain thisandagain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Two very small lint issues that are failing CI. You should be able to test this locally by running npm test.

penState.penAttributes.color4f[1] = rgb.g / 255.0;
penState.penAttributes.color4f[2] = rgb.b / 255.0;
if (rgb.hasOwnProperty('a')) { // Will there always be an 'a'?
penState.penAttributes.color4f[3] = rgb.a/255.0;

This comment was marked as abuse.

var g = (decimal >> 8) & 0xFF;
var b = decimal & 0xFF;
return {r: r, g: g, b: b};
return {r: r, g: g, b: b, a: a>0 ? a : 255};

This comment was marked as abuse.

Had to update the test scripts to handle the alpha channel, also I note
that all the hex tests are using CSS notation, not scratch notation
(which is 0x not #)
@griffpatch
Copy link
Contributor Author

Ok, I've fixed the lint issues - I also had to add to the test scripts to handle the new alpha values. Do I need to do anything to move the pull request forward?

@thisandagain thisandagain merged commit de40350 into scratchfoundation:develop Jan 27, 2017
@thisandagain
Copy link
Contributor

Thanks @griffpatch !

@griffpatch griffpatch deleted the feature/Support-ARGB-for-pen branch January 28, 2017 13:49
stefania11 pushed a commit to mitmedialab/cognimates-vm that referenced this pull request Mar 31, 2018
…esize-bug

Show workspace before triggering resize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants