Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

gmo

Member
  • Content Count

    4
  • Joined

  • Last visited

  1. Once again I answer myself. The problem I was having was specific to the p5 library. Creating canvases works just fine. For reference, I solved the problem by creating a div in the html code and setting it as the parent of the processing canvas.
  2. Hi, I am injecting a js script using a code block. The block draws a canvas and displays stuff on it. The problem I am having is that the canvas I draw appears in a totally wrong place. For reference, I want the canvas to appear where the red box is, but it appears all the way down close to the page's footer. What am I doing wrong? The html code is super simple. it goes: <div> <script> // STUFF IN HERE </script> </div>
  3. Ok, so I have figured it mostly out. But I am still getting some issues. The remaining issue is that my window is in the wrong place and it is just above the footer, while it should be sandwiched between two texts, where the code block is. I have injected into a code block this as html: <body> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>2D Boids</title> <script src="https:/
  4. Hi, I am trying to add a simulation to my website. I have everything running with javascript and an index.html on my local workspace, but am wondering how to place it in an online page. I have tried using code injection, but have failed miserably. I am using the p5.js library for visualization and a local script called Boids-2D . Does anyone know where and how to put this? Sorry if it is super easy, but I am very new to web development. Thanks! This is my local index.html code <!DOCTYPE html> <html> <head> <
×
×
  • Create New...