Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update color references #6839

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Conversation

nickmcintyre
Copy link
Member

Preparing references in src/color/setting.js for the new website.

PR Checklist

  • npm run lint passes
  • [Inline documentation] is included / updated

@Qianqianye @davepagurek @limzykenneth

Copy link
Contributor

@Qianqianye Qianqianye 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. I left two minor comments.

@@ -787,8 +1277,10 @@ p5.prototype.noFill = function() {
};

/**
* Disables drawing the stroke (outline). If both
* <a href="#/p5/noStroke">noStroke()</a> and
* Disables drawing points, lines, and the outlines of shapes.
Copy link
Contributor

Choose a reason for hiding this comment

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

How about a simplified version that's similar to the previous version, like 'Disables drawing the outlines of shapes"?
It seems like 'lines' might be a repeat of 'outline', and I'm not sure if we need mention 'points' here.
What do you think? @limzykenneth and @davepagurek

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the nice part about having lines and points is that it's maybe not immediately clear that those would be drawn with the stroke color rather than the fill color, since those aren't outlines of shapes. So this is maybe a helpful extra detail to include

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed with @davepagurek that the details would be helpful here.

* `stroke(255, 165, 0)` or `stroke('orange')` means all shapes drawn after
* the `stroke()` command will be filled with the color orange. The way these
* parameters are interpreted may be changed with the
* Sets the color used to draw points, lines, and the outlines of shapes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here. How about 'Sets the color used to draw the outlines of shapes'?
Not sure if we need 'points' and 'lines' here. @limzykenneth @davepagurek

@Qianqianye Qianqianye merged commit d6cceef into processing:main Mar 15, 2024
2 checks passed
@nickmcintyre nickmcintyre deleted the ref-color-set branch May 6, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants