Logo

Rédigé par retrodev | Classé dans : Do It Yourself

28
02 | 13

Vous l'avez peut-être remarqué, le Blog of Things a un nouveau logo. Oui, là haut, regardez ! Maintenant, rechargez la page, pour voir ... Hourra, il a changé. Rechargez encore ... Il est à nouveau différent. En effet, c'est un logo génératif.

Design génératif

L'art génératif, c'est la création à travers des algorithmes. L'artiste ne réalise pas l’œuvre, mais une formule, un protocole, un programme, permettant de la créer. La générativité impliquant souvent une dimension aléatoire, le résultat de l'algorithme peut prendre une multitude de formes différentes. La démarche du créateur réside dans le choix et l'organisation des opérations successives.

Bien que l'art génératif ait existé avant l'informatique (notamment avec la musique sérielle), les ordinateurs ont décuplés ses possibilités. La générativité est aujourd'hui appliquée à l'infographie, la vidéo, la musique, mais aussi la littérature et le jeu vidéo.

Processing

Processing est un langage de programmation (libre !) issu d'un projet de recherche du MIT Media Lab. Relativement simple et pédagogique, il a rend l'art numérique accessible aux non-informaticiens. Initialement dédié à la création graphique, la communauté a largement étendu ses fonctionnalités (son, réseau, ...). Son environnement de développement et sa syntaxe, par leur simplicité, ont influencé la création d'Arduino.

Ecrit en Java, Processing est nativement multi-plateforme. A l'origine, les programmes (sketchs) compilés n'étaient également disponibles qu'en Java, l'environnement de développement permettant néanmoins de les distribuer sous forme d'applications natives ou d'applets web.

En parallèle, le projet Processing.js a porté Processing en JavaScript, permettant d'exécuter directement du code Processing dans une page web (avec le canvas d'HTML5 pour l'affichage). Depuis la version 2, le support de Processing.js est inclus.

Le code

Voici donc le code commenté de ce nouveau logo. Tout d'abord, on initialise les variables du programme :

int taille = 120; // taille de l'image
int spots = 3; // nombre de points par ligne/colonne
int[][] tab; // la tableau des points
int space; // l'espacement entre les points

Ensuite, on ouvre la fonction setup(), qui sera lancée à l’exécution, et qui contiendra toutes les instructions nécessaires au dessin, et on initialise quelques paramètres :

void setup(){
  background(#dedede); // couleur de fond
  size(taille, taille); // taille du dessin
  space = taille / (spots + 1);

On remplit aléatoirement un tableau pour positionner les points colorés :

  tab = new int[spots][spots];
  for(int i = 0; i < spots; i++){
    for(int j = 0; j < spots; j++){
      // avec differentes valeurs
      tab[i][j] = floor(random(0, spots+1));
      // signifiant "rien", "blanc" ou "bleu"
    }
  }

On parcours une première fois le tableau pour dessiner les halos :

  for(int i = 0; i < spots; i++){
    for(int j = 0; j < spots; j++){
      if(tab[i][j] >= int((spots+1)/2)){
        noStroke(); // pas de contour
        if(tab[i][j] >= 3*int((spots+1)/4)){ // selon la valeur
          fill(35, 101, 176, 50); //remplissage  bleu
        }
        else{
          fill(255, 255, 255, 120); // remplissage blanc
        }
        // et on dessine le disque
        ellipse((i + 1)*space, (j+1)*space, 2*space, 2*space);
      }
    }
  }

On lance une seconde boucle pour tracer les connexions :

  stroke(0); // on reactive les contours
  for(int i = 0; i < spots*spots; i++){
    // on calcule des coordonnees aleatoires
    int a = floor(random(0, spots));
    int b = floor(random(0, spots));
    int c = floor(random(0, spots));
    int d = floor(random(0, spots));
    // et si il y a des points a chaque extremite
    if(tab[a][b] >= int((spots+1)/2) && tab[c][d] >= int((spots+1)/2)){
      // on dessine la connexion
      line((a+1)*space, (b+1)*space, (c+1)*space, (d+1)*space);
    }
  }

On parcours un deuxième fois le tableau, pour dessiner les points, cette fois :

  for(int i = 0; i < spots; i++){
    for(int j = 0; j < spots; j++){
      if(tab[i][j] >= int((spots+1)/2)){
        if(tab[i][j] >= 3*int((spots+1)/4)){ // selon la valeur
          fill(35, 101, 176); // remplissage bleu
        }
        else{
          fill(255); // remplissage blanc
        }
        // et on dessine le disque
        ellipse((i + 1)*space, (j+1)*space, space/2, space/2);
      }
    }
  }

Et c'est fini !

}

Vous pouvez télécharger le fichier processing (.pde) ici : bot_logo.pde

Liens

Mots clés : processing, logo, generatif, code, diy, javascript

Commentaires

Le 08 février 2017 custom assignment help service a dit :

#1

I have a 4x6 flier that I have made with a front and posterior on artist and I need to have the capacity to print 2 pamphlets pet 8.5x11 'sheet and arrangement it so I could do front-back printing.

Le 03 avril 2017 do my assignment | Assignmentd a dit :

#2

This is a wonderful website. The site owner has carried out a superb job of putting it together, the info here is really insightful.

Le 03 avril 2017 do my assignment | Assignmentd a dit :

#3

This is a wonderful website. The site owner has carried out a superb job of putting it together, the info here is really insightful.

Le 24 avril 2017 do my essay for me a dit :

#4

I read few posts on this site and I conceive that your web site is very interesting and has got sets of excellent info.

Le 23 mai 2017 tutuapp download a dit :

#5

Designed for both, iOS and Android, the Tutu app is a widely recognized free app for games and game hacks.

Le 13 juin 2017 psiphon for PC a dit :

#6

if your service provider is blocking any application usage then you can use the Psiphon application to unblock it

Le 29 juin 2017 buy custom papers online a dit :

#7

The technology and procedures utilized for printing Retro Prints reducedly affect nature. This innovation is exceptionally intended to lessen waste and vitality required to physically deliver the prints. This generation procedure guarantees that our Retro Prints are non-dangerous, recyclable and don't contain any unstable natural mixes like conventional photo prints systems do.

Le 02 août 2017 uk dissertation a dit :

#8

Digital printing is the propagation of computerized movies on a physical outside. It is for the most part used for short print.

Le 11 août 2017 Download Mobdro a dit :

#9

It has incorporated a portion of the best elements in it that makes it the most loved for countless

Le 16 août 2017 Happy New Year 2018 Greetings a dit :

#10

While we are almost half way through 2017, the wait and eagerness of welcoming the year 2018 are incomparable to anything else since it is not only about starting a new year

Le 01 septembre 2017 hollywood jackets a dit :

#11

I am very happy to read this. This is the kind of manual that needs to be given and not the random misinformation that's at the other blogs. Appreciate your sharing this best posting.

Le 13 octobre 2017 Blade Runner 2049 Ryan Goslin a dit :

#12

Thanks for this wonderful weblog. I seen this primary time in this weblog. it's miles really interesting. i am happy which you surely shared this useful facts with us. Please live us informed like this. thanks for sharing.

Le 01 novembre 2017 Mobdro a dit :

#13

Mobdro is one of the leading smart TV channel broadcast application accessible only for the android devices

Le 14 novembre 2017 Terraria hacks a dit :

#14

its such a wonderful game in online this website also provide a hacking.

Le 24 novembre 2017 Happy New Year 2018 Images a dit :

#15

Its really nice for me.

Le 24 novembre 2017 Republic Day Speech a dit :

#16

Very nice stuff.

Le 09 février 2018 coursework writing services a dit :

#17

We offers quality coursework help & services at affordable price with plagiarism free work. Place your order now!

Le 05 octobre 2018 Online Essay Editing Service a dit :

#18

A generative syntax is an arrangement of guidelines that creates linguistic sentences of a specific dialect, while additionally not producing ungrammatical sentences. Generally, generative sentence structures were intended to demonstrate the punctuation of dialects; in any case, similar strategies are utilized in different territories, for example, morphology.

Le 31 octobre 2018 sunlea vlogging camera review a dit :

#19

This is a fantastic website , thanks for sharing.

Le 02 novembre 2018 internet marketing solutions a dit :

#20

I’m excited to uncover this page. I need to to thank you for ones time for this particularly fantastic read !! I definitely really liked every part of it and i also have you saved to fav to look at new information in your site.

Le 17 novembre 2018 webstagram a dit :

#21

You made some decent points there. I looked on the internet for the issue and found most individuals will go along with with your website.

Le 20 novembre 2018 Foldable Gift Boxes a dit :

#22

Woah! I'm really enjoying the template/theme of this site.
It's simple, yet effective. A lot of times it's tough to get that "perfect balance" between usability and appearance. foldable gift boxes can be a special gesture to make someone feel important. Imagine how your dear one feels when you present them a gift wrapped in a customized foldable gift box.

Shower love, affection and care with our beautiful foldable gift boxes that are now available in USA with no shipping charges.

Le 26 novembre 2018 sims 4 cc a dit :

#23

I am always searching online for articles that can help me. There is obviously a lot to know about this. I get to you a new game. This is hot games in the year– sims 4 cc. Click link to visit site

Le 26 novembre 2018 Sub-Inspector taiyari kaise ka a dit :

#24

The article you have shared here very good.

Le 26 novembre 2018 Ram kya hai a dit :

#25

Thank you!

Le 02 janvier 2019 yisence camcorder with flip sc a dit :

#26

Very nice blog and articles. I am realy very happy to visit your blog. Now I am found which I actually want. I check your blog everyday and try to learn something from your blog. Thank you and waiting for your new post.

Le 14 janvier 2019 internet marketing a dit :

#27

It is perfect time to make some plans for the future and it is time to be happy. I've read this post and if I could I desire to suggest you some interesting things or suggestions. Perhaps you could write next articles referring to this article. I want to read more things about it!

Le 17 janvier 2019 hotmail login a dit :

#28

Hotmail is free webmail service provided by Microsoft, basically this email design for corporate and professional use.

Le 30 janvier 2019 Wholly Tricks a dit :

#29

Hey this is working out so good.

Le 30 janvier 2019 Wholly Tricks a dit :

#30

Wholly Tricks is here to be with you.

Le 30 janvier 2019 Idea number check codes a dit :

#31

check your own idea number right now.

Le 30 janvier 2019 Vodafone Own Number Check Code a dit :

#32

Vodafone Own Number check code is here.

Le 30 janvier 2019 Jio Number check codes a dit :

#33

Jio Number check code is just right here.

Le 30 janvier 2019 Airtel Number check codes a dit :

#34

Airtel Number check codes just for you baby.

Le 30 janvier 2019 Airtel Loan number codes a dit :

#35

Airtel loan number codes are just right here.

Le 30 janvier 2019 Idea Loan Number codes a dit :

#36

get yourself a idea loan really fast.

Le 30 janvier 2019 Vodafone Loan Number Codes a dit :

#37

Vodafone loan number is the best,

Le 30 janvier 2019 IMEI Number Check Codes a dit :

#38

check your own imei number now.

Le 30 janvier 2019 Graphics Card Under 100 dollar a dit :

#39

get yourself a graphics card under 100 dollars..

Le 30 janvier 2019 Idea loan a dit :

#40

idea loan is the best,

Le 30 janvier 2019 Happy Birthday Status a dit :

#41

wish your loved ones fast.

Le 30 janvier 2019 Techky Universe a dit :

#42

Techky Universe is here to be with you.

Le 30 janvier 2019 Tech Troth a dit :

#43

Tech Troth is here just for you.

Le 30 janvier 2019 Tech Mania a dit :

#44

Tech Mania is the best thing.

Le 30 janvier 2019 Happy Wishes Days a dit :

#45

happywishes days is here for you only..

Le 08 février 2019 Best tested forex signal revie a dit :

#46

Very informative blog post.Really looking forward to read more. Great.

Le 08 février 2019 Best tested forex signalreview a dit :

#47

Nice article! I am very glad to get this latest Update.

Le 20 février 2019 Black Leather Jackets a dit :

#48

Nice blogs its a helpful information provide by the author kindly share us your great information and keep stay with us with your efforts about internet .

Le 05 mars 2019 ELECTRIC BIKE CONVERSION KIT a dit :

#49

Nice sharing amazing one keep sharing more thanks for all lovely one

Le 11 mars 2019 Expert comptable Baie-Mahault a dit :

#50

Thank you a lot for take the time for such a good information.

Le 11 mars 2019 Expert comptable Baie-Mahault a dit :

#51

Thank you a lot for take the time for such a good information.

Le 11 mars 2019 Hébergement la Désirade a dit :

#52

Keep sharing this type of posting with us.. Thanks

Le 18 mars 2019 ryan gosling coat for sale a dit :

#53

One day you are on the top! your posts are so helpful peoples learn many things from your blog. your blog is too appreciable..

Le 24 mars 2019 parimatch a dit :

#54

will never look if there should be an occurrence of purchasing looks as there are a few brands of watches which can suit your style taste and the event.

Le 01 avril 2019 voyance amour a dit :

#55

In the extremely far separation storm mists were preparing and as the day passed by, they were floating nearer and nearer to their present position,

Le 03 avril 2019 interior designer Singapore a dit :

#56

discovering clients, the amount to charge and the desk work required.

Le 23 avril 2019 online equipment auction site a dit :

#57

You can get the best Woodworking Equipment Auction with us in our online portal currently going on see now for the help you just have one week take the benefits of the auctions with us we have the best-used equipment for your business help in the Restaurant Auctions you can get the best help to grow your business really fast in the US. We deal in different states. Get a franchise with us within your state and get the benefits of it.

Le 23 avril 2019 Best Furniture Cleveland Ohio a dit :

#58

For the best Dining room furniture you can visit us in Ohio we provide the best stylish furniture for you so you can get the best Dining room for your family in Our home. We have the best table and chairs set in our outlet you can see them all in place and can take help with us.

Le 23 avril 2019 Wet basement Cleveland a dit :

#59

We have the best service of the wet basement you can get the best waterproofing system with us we have the basement wall crack repair and crack foundation repair in Ohio you can get other hard services that no one can provide you but with the help of our experts we are able to give you the best effective service in Ohio.

Le 26 avril 2019 God give me Strength to be Str a dit :

#60

Actually I visit here because my friend told me about this forum where I can communicate with a persons whom they can be benefited for completion of my projects on Human Relationship tips. Thank you for this amazing writing.

Le 08 mai 2019 faux mink lashes a dit :

#61

where can i buy fake eyelashes

Le 08 mai 2019 natural fake eyelashes a dit :

#62

Seriously all kinds of useful tips.

Le 08 mai 2019 fake eyelash extensions a dit :

#63

You actually said that very well!

Le 08 mai 2019 cheap mink eyelashes a dit :

#64

what type of fake eyelashes to buy

Le 08 mai 2019 Fortnite Phone Case a dit :

#65

Nicely put, Cheers.

Le 09 mai 2019 app para espiar celulares a dit :

#66

It might likewise have the implying that it very well may be increasingly flexible with training.

Le 28 mai 2019 mold removal a dit :

#67

In the event that it isn't, you can fix this issue by obtaining a dehumidifier.

Le 08 juin 2019 British assignment help a dit :

#68

We enable you to improve your academic performance by availing our in-house team services. Our aim is to serve you with top-quality stuff so that you can experience the taste of success and prosperity.

Le 08 juin 2019 www.marketing1on1.com a dit :

#69

Social media marketing is a great way for businesses to fulfill their objectives in terms of building brand equity, improving customer service, reaching new customers and collecting customer feedback.

Le 10 juin 2019 Agen SBOBET a dit :

#70

I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day!

Le 15 juin 2019 click for more info artificial a dit :

#71

Some people might not be interested to invest on the installing of fake grass and are more confident in their capacity to install for themselves if so apply for diy artificial grass installation

Le 19 juin 2019 Electrical staffing a dit :

#72

Great post. I used to be checking constantly this weblog and I
am inspired! Very helpful information specifically the last part :) I
care for such info much. I used to be seeking this particular info for
a very long time. Thanks and best of luck.

Le 28 juin 2019 paper writing service a dit :

#73

Get Writer Help have perfect writers who have command on writing essays, dissertations & assignments. Get best paper writing service.

Le 28 juin 2019 Top Research Paper a dit :

#74

We are the best top Research Paper writing assistance around, and you will not have to worry about submitting an assignment that has been written in the wrong context.

Le 08 juillet 2019 storiesig a dit :

#75

I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject.

Le 08 juillet 2019 fluid bed processor manufactur a dit :

#76

This Is Really Great Work. Thank You For Sharing Such A Good And Useful Information Here In The Blog

Le 12 juillet 2019 custom spring plungers a dit :

#77

RocheHarware.com is the only manufacturer in China that supplies custom flight case hardware & accessories to importers worldwide.

Le 24 juillet 2019 LG Networks a dit :

#78

What Are Outsourced IT Services?
Redistributed IT administrations are the point at which you employ an outside organization to deal with your IT needs.
An outsider oversaw specialist organization (MSP) can cover everything from the security of
systems and the usage of working frameworks to the establishment of programming and the reinforcement of documents.


Note that re-appropriated IT administrations are not simply break/fix
administrations. A break/fix specialist comes to you when something is broken, charging
an hourly expense to analyze and fix the issue.
A break/fix administration may appear to be more affordable since you possibly pay when you
have an issue, yet it’s probably going to be all the more exorbitant
over the long haul. They have next to zero motivator to work rapidly or cause a steady fix
since they to get paid more in the event that it requires them a long investment or different excursions to fix
something.

In contrast to break/fix benefits, an oversaw IT specialist
organization constructs an association with your organization, always checking your system for
a month to month charge. MSPs are there to keep your system running
easily, not simply to fix issues, so they have increasingly motivator to locate a quick,
dependable arrangement if something goes off-base.
It’s better for you and the specialist organization on the off chance that they kill dangers and fix issues as they occur.
Taking care of an issue the first run through methods less work for them and
urges you to proceed with your participation.

Le 31 juillet 2019 canadian slipcovers a dit :

#79

I read your blog post and this is nice blog post.. thanks for taking the time to share with us. have a nice day

Le 31 juillet 2019 import brakepads from China a dit :

#80

I read your blog post and this is nice blog post.. thanks for taking the time to share with us. have a nice day

Le 01 août 2019 pharma equipment manufacturer a dit :

#81

Nice sharing amazing one keep sharing more thanks for all lovely one

Le 04 août 2019 สล็อตออนไลน์ a dit :

#82

Thank for your writting! It is easy to understand and detailed. I feel it is interesting, I hope you continue to have such good posts

Le 04 août 2019 goldenslot a dit :

#83

Well, thank you very much for sharing this great information.

Le 04 août 2019 โกลเด้นสล็อต a dit :

#84

This content is very good. Very interesting. Thank you Good article like this.

Le 04 août 2019 สล็อต a dit :

#85

I assure this would be beneficail for most of the people

Le 05 août 2019 pharmaceutical manufacturing a dit :

#86

Nice sharing amazing one keep sharing more thanks for all lovely one

Le 05 août 2019 cotton bags manufacturer a dit :

#87

Nice sharing amazing one keep sharing more thanks for all lovely one

Le 06 août 2019 College Application Essay Writ a dit :

#88

One of the strategies the company has adopted in becoming the best Urgent College Paper Writing Services providing company in the industry is the focus on delivering College Essay Writing Service that are 100% unique.

Le 15 août 2019 import brakepads from China a dit :

#89

I read your blog post and this is nice blog post.. thanks for taking the time to share with us. have a nice day

Fil Rss des commentaires de cet article

Ecrire un commentaire




Quelle est la dernière lettre du mot yunjdf ? :