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

Improve documentation clarity of texture methods #5316

Merged
merged 2 commits into from
Jul 28, 2021

Conversation

JetStarBlues
Copy link
Contributor

Minor changes to the wording used in the following texture methods, with the goal of improving clarity.

texture()

1) Reword

Current:

Texture for geometry. You can view other possible materials in this example.

Change:

Sets the texture that will be used to render subsequent shapes.

Note, texture() can only be used in WEBGL mode.

You can view more materials in this example.

2) Reword

Current:

2-dimensional graphics to render as texture

Change:

image to use as texture

3 @alt

Change:

spinning cube with a texture from an image

plane with a texture from an image created by createGraphics()

rectangle with video as texture

textureMode()

x) Omit disclaimer

Current:

This function only works in WEBGL mode.

2 @alt

Change:

quad with a texture

Screenshots of the change

texture
g1_texture

textureMode
g2_textureMode

textureWrap
g3_textureWrap

@JetStarBlues
Copy link
Contributor Author

Added some notes to texture() from the "Getting started with WebGL in p5" wiki. Added an extra example to demonstrate additional info.

updated texture()
texture_update

Stumbled upon a "hidden" example for textureMode(). It is supposed to show use of IMAGE.
textureMode_hiddenExample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants