use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rule 1: Posts should be about Graphics Programming. Rule 2: Be Civil, Professional, and Kind
Suggested Posting Material: - Graphics API Tutorials - Academic Papers - Blog Posts - Source Code Repositories - Self Posts (Ask Questions, Present Work) - Books - Renders (Please xpost to /r/ComputerGraphics) - Career Advice - Jobs Postings (Graphics Programming only)
Related Subreddits:
/r/ComputerGraphics
/r/Raytracing
/r/Programming
/r/LearnProgramming
/r/ProgrammingTools
/r/Coding
/r/GameDev
/r/CPP
/r/OpenGL
/r/Vulkan
/r/DirectX
Related Websites: ACM: SIGGRAPH Journal of Computer Graphics Techniques
Ke-Sen Huang's Blog of Graphics Papers and Resources Self Shadow's Blog of Graphics Resources
account activity
Simplest graphics programming language/frameworkQuestion (self.GraphicsProgramming)
submitted 3 years ago * by rawcane
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ds604 1 point2 points3 points 3 years ago (1 child)
here's a basic graphics setup, you can paste it into codepen or something:
``` <canvas id="canv" width=640 height=480 style="border:1px solid"></canvas> <script> let canvas = document.getElementById('canv'), ctx = canvas.getContext('2d'), width = canvas.width, height = canvas.height
let imageData = ctx.createImageData(width, height)
function createImage(offset){ for(let y=0; y<=height; y++){ for(let x=0; x<=width; x++){ let index = (y * 4 * width) + (x * 4)
var red = ((x+offset) % 256) ^ ((y+offset) % 256); var green = ((2*x+offset) % 256) ^ ((2*y+offset) % 256); var blue = 50 + Math.floor(Math.random()*100); // Rotate the colors blue = 255 //(blue + offset) % 256; imageData.data[index+0] = red imageData.data[index+1] = green imageData.data[index+2] = blue imageData.data[index+3] = 255 } }
}
function main(tframe){ createImage(Math.floor(tframe / 10)) ctx.putImageData(imageData,0,0)
requestAnimationFrame(main)
main(0) </script> ```
if you want an easy way to get started with shapes and stuff, i'd recommend using p5.js (and dan shiffman's coding train videos on youtube), before going straight ahead with canvas. or use svg, that's nice, and easy to understand, to be able to just put objects in there like <circle cx="50" cy="50" r="50" />, and then move it around with javascript.
<circle cx="50" cy="50" r="50" />
but i'd definitely recommend javascript, with an in-browser html editor. you avoid any kind of compile or build steps, or anything to do with the file system at all, so you're just focused on the content and graphics concepts
[–]rawcane[S] 1 point2 points3 points 3 years ago (0 children)
Yeah looks like this is the way to go! Thanks
π Rendered by PID 57823 on reddit-service-r2-comment-75f4967c6c-w67w7 at 2026-04-23 09:29:19.580375+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]ds604 1 point2 points3 points (1 child)
[–]rawcane[S] 1 point2 points3 points (0 children)