Skip to content

Instantly share code, notes, and snippets.

View thevalleyy's full-sized avatar
😇
waiting for love

thevalleyy thevalleyy

😇
waiting for love
View GitHub Profile
@DEVTomatoCake
DEVTomatoCake / index.js
Created November 8, 2021 13:54
Node.js Atommodell-Generator (fehlerhafte Valenzelektronen)
const { createCanvas, loadImage } = require('canvas')
const canvas = createCanvas(256, 256)
const ctx = canvas.getContext('2d')
const express = require("express")
const app = express()
app.listen(3000)
app.get("/", (req, res) => {
res.send("<img width=256 height=256 src='" + generate() + "'>")
})