Texturing 3D

3D torus with colourful texture

Texturing Images

Download free images from Pexels.

Files option: Images can be uploaded here once the project is saved.

web editor

Code :


Make a variable.

coloured background


Now, make function preload for uploading the images.

Use the variable made in the first step to store the uploaded image.

Inside the loadImage function within the quotation marks give the name of the image selected e.g: "colours.png".

Image formats which are allowed are png and jpg or jpeg.

coloured background


In the draw(), use the texture function and inside it give the variable storing the loaded image.

coloured background

Continue Reading

Key Controls

Learn More

Web Editor

Learn More