Skip to main content
Von CheYuWu
Von CheYuWu

Creative Coding Art Source Code As you purchase and own this NFT of interactive Art source code, you are authorized to integrate or build upon in personal or commercial projects such as websites, web apps, and web templates intended for sale.

class Particle{
	constructor(args){
		let def = {
			lastP: createVector(0,0),
			p: createVector(0,0),
			v: createVector(0,0),
			a: createVector(0,0),
			color: color(255),
			rSpan: random([10,20,50,100]),
			dashSpan: random([1,10,10000000]),
			r: 2
		}
		Object.assign(def,args)
		Object.assign(this,def)
	}
	update(){
		this.lastP.x = this.p.x
		this.lastP.y = this.p.y
		this.p.add(this.v)
		this.v.add(this.a)
		
			this.p.y+=sin(this.p.x/this.rSpan)*4
			this.p.x+=sin(this.p.y/this.rSpan)*4
		if (int(this.p.x)%20==0){
			this.v.x+=(noise(this.p.x*100,100000)-0.5)/10
			this.v.y+=(noise(this.p.y*100,5)-0.5)/10
			// this.p.y+=sin(this.p.x/5)*2
			// this.p.x+=sin(this.p.y/5)*2
			// this.v.x+=random(-1,1)
			// this.v.y+=random(-1,1)
			if (random()<0.3){
				this.color = random(random([colors,colors2]))
			}
		}
		let delta = createVector(width/2,height/2).sub(this.p)
		this.p.add(delta.mult(0.1).limit(4))
		this.v.mult(0.999)
		this.r*=0.998
	}
	draw(){
		push()
			noStroke()
			strokeWeight(this.r)
			stroke(this.color)
			// translate(this.p.x,this.p.y)
			// ellipse(0,0,this.r)
			if ((frameCount % this.dashSpan)<this.dashSpan*0.7){
				line(this.lastP.x,this.lastP.y,this.p.x,this.p.y)
			}
			if (random()<0.1){
				noStroke()
				fill(0,100)
				for(var i=0;i<5;i++){
					ellipse(this.p.x+random(-20,20),this.p.y+random(-20,20),random(2))
				}
			}
			let c = color(this.color)
			c.setAlpha(3)
			stroke(c)
			blendMode(SCREEN)
			// for(var i=4;i<5;i++){
			// 	strokeWeight(i*3)
			// 	line(this.lastP.x,this.lastP.y,this.p.x,this.p.y)
			// }
			// strokeWeight(6)
			// line(this.lastP.x,this.lastP.y,this.p.x,this.p.y)
			// strokeWeight(8)
			// line(this.lastP.x,this.lastP.y,this.p.x,this.p.y)
			
			// ellipse(0,0,this.r*2)
			// ellipse(0,0,this.r*3)
			// ellipse(0,0,this.r*4)
		pop()
		
	}
}

var colors = "083d77-ebebd3-f4d35e-ee964b-f95738-f24".split("-").map(a=>"#"+a)
var colors2 = "22577a-38a3a5-57cc99-80ed99-c7f9cc-fff".split("-").map(a=>"#"+a)
var particles = []
function setup() {
	createCanvas(1000,1000);
	background(100);
	fill("#151023")
	pixelDensity(2)
	rect(0,0,width,height)
	for(var i=0;i<height;i+=4){
		particles.push(new Particle({
			p: createVector(0,(i-height/2)+height/2),
			v: createVector(1,-(i-height/2)/50),
			a: createVector(0.03,0),
			color: colors[int(i/50)%colors.length],
			r: max(1,random(15)*random()*random())
		}))
	}
}

function draw() {
	noStroke()
	// background(0,1)
	particles.forEach(p=>{
		p.update()
		p.draw()
	})
	// ellipse(mouseX, mouseY, 20, 20);
}
Generative Art NFT - Che-Yu Wu collection image

Creative Coding Art Source Code (21 items, Out of Print Collection at 07/20/2021.) Che-Yu Wu is a multidisciplinary new media artist, designer, engineer, and entrepreneur from Taiwan, currently based in New York. With the sensitivity of art and engineering background. He creates generative arts which sampled from nature, physics, modernism art and turn them into algorithmic interactive art machines.

Twitter: https://twitter.com/cheyuwu345 New Media Artist Che-Yu Wu: https://opensea.io/accounts/CheYuWu

Kategorie „Art
Vertragsadresse0x495f...7b5e
Token-ID
Token-StandardERC-1155
ChainEthereum
MetadatenZentralisiert
Erstellergebühren
10%

200802 Tangled

visibility
259 Ansichten
  • Preis
    Preis in USD
    Menge
    Ablaufdatum
    Von
  • Preis
    Preis in USD
    Menge
    Differenz zum Mindestpreis
    Ablaufdatum
    Von
keyboard_arrow_down
  • Verkäufe
  • Übertragungen
Ereignis
Preis
Von
An
Datum

200802 Tangled

visibility
259 Ansichten
  • Preis
    Preis in USD
    Menge
    Ablaufdatum
    Von
  • Preis
    Preis in USD
    Menge
    Differenz zum Mindestpreis
    Ablaufdatum
    Von
Von CheYuWu
Von CheYuWu

Creative Coding Art Source Code As you purchase and own this NFT of interactive Art source code, you are authorized to integrate or build upon in personal or commercial projects such as websites, web apps, and web templates intended for sale.

class Particle{
	constructor(args){
		let def = {
			lastP: createVector(0,0),
			p: createVector(0,0),
			v: createVector(0,0),
			a: createVector(0,0),
			color: color(255),
			rSpan: random([10,20,50,100]),
			dashSpan: random([1,10,10000000]),
			r: 2
		}
		Object.assign(def,args)
		Object.assign(this,def)
	}
	update(){
		this.lastP.x = this.p.x
		this.lastP.y = this.p.y
		this.p.add(this.v)
		this.v.add(this.a)
		
			this.p.y+=sin(this.p.x/this.rSpan)*4
			this.p.x+=sin(this.p.y/this.rSpan)*4
		if (int(this.p.x)%20==0){
			this.v.x+=(noise(this.p.x*100,100000)-0.5)/10
			this.v.y+=(noise(this.p.y*100,5)-0.5)/10
			// this.p.y+=sin(this.p.x/5)*2
			// this.p.x+=sin(this.p.y/5)*2
			// this.v.x+=random(-1,1)
			// this.v.y+=random(-1,1)
			if (random()<0.3){
				this.color = random(random([colors,colors2]))
			}
		}
		let delta = createVector(width/2,height/2).sub(this.p)
		this.p.add(delta.mult(0.1).limit(4))
		this.v.mult(0.999)
		this.r*=0.998
	}
	draw(){
		push()
			noStroke()
			strokeWeight(this.r)
			stroke(this.color)
			// translate(this.p.x,this.p.y)
			// ellipse(0,0,this.r)
			if ((frameCount % this.dashSpan)<this.dashSpan*0.7){
				line(this.lastP.x,this.lastP.y,this.p.x,this.p.y)
			}
			if (random()<0.1){
				noStroke()
				fill(0,100)
				for(var i=0;i<5;i++){
					ellipse(this.p.x+random(-20,20),this.p.y+random(-20,20),random(2))
				}
			}
			let c = color(this.color)
			c.setAlpha(3)
			stroke(c)
			blendMode(SCREEN)
			// for(var i=4;i<5;i++){
			// 	strokeWeight(i*3)
			// 	line(this.lastP.x,this.lastP.y,this.p.x,this.p.y)
			// }
			// strokeWeight(6)
			// line(this.lastP.x,this.lastP.y,this.p.x,this.p.y)
			// strokeWeight(8)
			// line(this.lastP.x,this.lastP.y,this.p.x,this.p.y)
			
			// ellipse(0,0,this.r*2)
			// ellipse(0,0,this.r*3)
			// ellipse(0,0,this.r*4)
		pop()
		
	}
}

var colors = "083d77-ebebd3-f4d35e-ee964b-f95738-f24".split("-").map(a=>"#"+a)
var colors2 = "22577a-38a3a5-57cc99-80ed99-c7f9cc-fff".split("-").map(a=>"#"+a)
var particles = []
function setup() {
	createCanvas(1000,1000);
	background(100);
	fill("#151023")
	pixelDensity(2)
	rect(0,0,width,height)
	for(var i=0;i<height;i+=4){
		particles.push(new Particle({
			p: createVector(0,(i-height/2)+height/2),
			v: createVector(1,-(i-height/2)/50),
			a: createVector(0.03,0),
			color: colors[int(i/50)%colors.length],
			r: max(1,random(15)*random()*random())
		}))
	}
}

function draw() {
	noStroke()
	// background(0,1)
	particles.forEach(p=>{
		p.update()
		p.draw()
	})
	// ellipse(mouseX, mouseY, 20, 20);
}
Generative Art NFT - Che-Yu Wu collection image

Creative Coding Art Source Code (21 items, Out of Print Collection at 07/20/2021.) Che-Yu Wu is a multidisciplinary new media artist, designer, engineer, and entrepreneur from Taiwan, currently based in New York. With the sensitivity of art and engineering background. He creates generative arts which sampled from nature, physics, modernism art and turn them into algorithmic interactive art machines.

Twitter: https://twitter.com/cheyuwu345 New Media Artist Che-Yu Wu: https://opensea.io/accounts/CheYuWu

Kategorie „Art
Vertragsadresse0x495f...7b5e
Token-ID
Token-StandardERC-1155
ChainEthereum
MetadatenZentralisiert
Erstellergebühren
10%
keyboard_arrow_down
  • Verkäufe
  • Übertragungen
Ereignis
Preis
Von
An
Datum