Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Editor screenshot with the following code if (navigator.appName === "jSH") { Include('p5'); } function setup() { cX = width / 2; cY = height / 2; rot = 0; col = 0; direction = 1; frameRate(60); } function draw() { colorMode(RGB); background(0); stroke(255, 32, 42); line(2, 2, 12, 12); stroke(255, 0, 0); line(0, 0, width - 1, height); stroke(0, 255, 0); line(0, height, width - 1, 0); fill(0, 0, 255); stroke(0, 255, 255); ellipse(cX, cY, 8, 12); cX += direction; if (cX > width / 2 + 12) { direction = -1; } if (cX < width / 2 - 12) { direction = 1; } push(); fill(0, 255, 0); stroke(255, 255, 0); translate(13, 13); rotate(rot); rect(0, 0, 10, 10); pop(); colorMode(HSB); noStroke(); fill(col, 100, 100); triangle(width - 5, height - 5, width - 15, height - 5, width - 5, height - 15); rot += 0.1; col += 4; if (col >= 360) { col = 0; } }

Download link

https://files.mastodon.social/media_attachments/files/109/310/008/712/482/858/original/aee365a81bc511ec.png

Notices where this attachment appears

  1. SuperIlu (dec_hl@mastodon.social)'s status on Tuesday, 08-Nov-2022 22:44:03 UTC SuperIlu SuperIlu

    #DOjS may be my favorite child^Wproject, but did you know it has a little sibling?
    #jSH is a text mode #JavaScript interpreter for MS-DOS. I wrote a Norton Commander clone in Javascript as an example app.

    https://github.com/SuperIlu/jSH

    And though it only runs in text mode, it has a minimal #p5js port as well 😋

    In conversation Tuesday, 08-Nov-2022 22:44:03 UTC from mastodon.social permalink
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.