Created
February 25, 2022 14:31
-
-
Save furenku/f31c1b944bfc5d99d8ea6173ac891b5a to your computer and use it in GitHub Desktop.
sketch js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- html:5 --> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Rick and Morty</title> | |
| <!-- link --> | |
| <link rel="stylesheet" href="estilos.css"> | |
| </head> | |
| <body> | |
| <!-- script --> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.1/p5.min.js"></script> | |
| <!-- script --> | |
| <script src="personajes.js"></script> | |
| <!-- script --> | |
| <script src="script.js"></script> | |
| <!-- script --> | |
| <script src="sketch.js"></script> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function setup() { | |
| createCanvas( windowWidth, windowHeight ) | |
| textAlign( CENTER, CENTER ) | |
| } | |
| function draw() { | |
| let colorFondo = frameCount % 255 | |
| background( colorFondo ) | |
| textSize( 60 ) | |
| let texto = "Hola" | |
| text( texto, width / 2, height / 2 ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment