Skip to content

Instantly share code, notes, and snippets.

Stable Diffusion is an AI art generation model similar to DALLE-2.
Here are some prompts for generating art with Stable Diffusion.
Example:
- portait of a homer simpson archer shooting arrow at forest monster, front game card, drark, marvel comics, dark, intricate, highly detailed, smooth, artstation, digital illustration
- pirate, concept art, deep focus, fantasy, intricate, highly detailed, digital painting, artstation, matte, sharp focus, illustration
- ghost inside a hunted room, art by lois van baarle and loish and ross tran and rossdraws and sam yang and samdoesarts and artgerm, digital art, highly detailed, intricate, sharp focus, Trending on Artstation HQ, deviantart, unreal engine 5, 4K UHD image
- red dead redemption 2, cinematic view, epic sky, detailed, concept art, low angle, high detail, warm lighting, volumetric, godrays, vivid, beautiful, trending on artstation
- a fantasy style portrait painting of rachel lane / alison brie hybrid in the style of francois boucher oil painting unreal 5 daz.
void setup(){
size(400,300);
colorMode(HSB);
}
// repeat all the time --> refresh the screen continuously
void draw(){
background(0);
float spacing = 20;
for (float x=0; x < mouseX; x+=spacing){
int x = 0;
void setup(){
size(400,300);
frameRate(10);
ellipseMode(CORNER);
}
// repeat all the time --> refresh the screen continuously
void draw(){
// v1
boolean white = true;
int spacing = 20;
size(400,300);
noStroke();
for (float x = 0; x<width; x+=spacing){
if (white){
fill(255);
PImage diamond = loadImage("img/diamond.png");
size(400,400);
final int COUNT = 5; // 5 diamonds at a line
float spacingX = width/COUNT;
float spacingY = height/COUNT;
float x = 0, y1 = 0, y2 = height-spacingY;
size(400,300);
colorMode(HSB);
float spacing = 20;
for (float x=0; x < width; x+=spacing){
float hue = x/width * 255;
noStroke();
fill(hue, 255, 255);
size(400,300);
// setup variable
int x = 0;
// test condition
while ( x < width ){
line(x,0,x,height);
// change variable
x += 50;
final int GAME_START = 0;
final int GAME_RUN = 1;
final int GAME_WIN = 2;
final int GAME_OVER = 3;
float car1X, car2X;
float carWidth;
float maxSpeed;
int gameState;
final int GO_RIGHT = 0;
final int GO_DOWN = 1;
final int GO_LEFT = 2;
final int GO_UP = 3;
float x, y;
float w, h;
float speed = 5;
int state = GO_RIGHT;
float x;
float y;
float speed = 5;
boolean upPressed = false;
boolean downPressed = false;
boolean leftPressed = false;
boolean rightPressed = false;
void setup() {