jBB by Farbfinsternis
Docs
-
Source
JBB Code
// Import ALL functions from the library into the "jbb" namespace. import * as jbb from 'jbb'; const SCREEN_WIDTH = 800; const SCREEN_HEIGHT = 600; let x=0; // Initializes the graphics and starts the main loop jbb.Graphics(SCREEN_WIDTH, SCREEN_HEIGHT, mainLoop); let image = jbb.LoadImage('https://www.blitzforum.de/header/header.png'); jbb.Start(); // Start the main loop // The main loop, which is called continuously function mainLoop() { jbb.Cls(); jbb.DrawImage(image); x = (x+1) % 360; jbb.Color(255,0,0); jbb.Rect(Math.sin(x/360*Math.PI*2)*100+500,90,10,10); jbb.Color(0,255,0); jbb.Oval(50,100+x,10,10); jbb.Color(0,0,255); jbb.Line(80,140,70,280); jbb.Line(100,280,70,280); jbb.Line(80,140,100,280); }
Run
Blob-URL Generator
File
URL
Delete
Errors