Skip to content

Instantly share code, notes, and snippets.

@furenku
Created February 25, 2022 14:31
Show Gist options
  • Select an option

  • Save furenku/f31c1b944bfc5d99d8ea6173ac891b5a to your computer and use it in GitHub Desktop.

Select an option

Save furenku/f31c1b944bfc5d99d8ea6173ac891b5a to your computer and use it in GitHub Desktop.
sketch js
<!-- 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>
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