Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let img;
- function preload()
- {
- img = loadImage( 'https://i.ibb.co/vxbB0r7/cube.png' );
- }
- function setup()
- {
- createCanvas( 400, 400 );
- }
- function draw()
- {
- background( 190, 190, 256 );
- for( let y = 0; y < 16; y ++ )
- for( let x = 0; x < 16; x ++ )
- {
- image( img,
- x * 29,
- y * 15 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement