Skip to content

Instantly share code, notes, and snippets.

View Ajaya1000's full-sized avatar
🐵
Learning

Ajaya Mati Ajaya1000

🐵
Learning
View GitHub Profile
function setup() {
createCanvas(400, 400);
}
function draw() {
}
function setup() {
createCanvas(400, 400);
}
function draw() {
background(200)
}
function setup() {
createCanvas(400, 400);
}
function draw() {
background(255,0,0)
}
function setup() {
createCanvas(400, 400);
frameRate(3)
}
function draw() {
background(255,0,0)
}
function setup() {
frameRate(3);
createCanvas(400,400);
}
function draw() {
background(random(0,255),random(0,255),random(0,255));
}
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
circle(100,100,50);
}
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
frameRate(1); // To visualize the effect
circle(100,200,100); // the fill color will be pink after one call-1 sec
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
circle(mouseX,mouseY,100);
}
let x=100,y=100;
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
circle(x,y,100);
x=x+1;
y=y+1;
@Ajaya1000
Ajaya1000 / SnakeAndLader.swift
Created October 11, 2023 16:01
Snake And ladder Machine Coding
import Foundation
import UIKit
import PlaygroundSupport
struct Point {
var x: Int
var y: Int
}
extension Point {