CodingTrain / CodingTrain/Suggestion-Box

Mondrian

Aperta
#456 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Help wanted
Lingua principale
Nessun dato sulla lingua
Stelle
570
Fork
85
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

`Hey` Daniel , I was thinking about a code that could generate a neoplastic artwork(specifically from piet mondrian), I made a quick sketch on processing:

```

Mondrian a;
void setup(){
background(255);
size(600,440);
a = new Mondrian();}
void draw(){
noLoop();

a.display();
}
class Mondrian{

void display(){

for (float i=0;i<40;i=i+1){
float larg=random(width);
float altura=random(height);
float x=random(width);
float y=random(height);
color red=color(255,0,0);
color yellow=color(255,255,0);
color b=color(0,0,255);
color branco=color(255,255,255);
color[] cores={red,yellow,b,branco};
int index=int(random(4));
fill(cores[index]);

rect(x,y,larg,altura);


strokeWeight(4);
println(i);}}}
```

An issue that I couldn't fix yet is that I couldnt make the rectangles stop overlapping each others, and I dont know how to use p5 yet.... :( I started learning code 6 days ago, so I am still a padwan.... I love your videos!Thank you and sorry for this bad code here!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

No repository file, test, or entry point is named. Start by reviewing the Processing sketch and the mention of p5, then determine how the project would represent the requested Mondrian-style artwork and non-overlapping rectangles. Done would mean a defined, reproducible way to generate the requested artwork without rectangle overlap.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Ambito
computer-graphics
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
15/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.