Giter Site home page Giter Site logo

dermotmadsen's Introduction

/*
Name : Dermot Madsen
Student Number: 20104123

Brief description of program: 
The following code displays a gridded (16x9) random sequence of
3 shapes and 5 colours with a frame counter. 

Adobe Color Palette Used:
=========================
- Link to colour scheme : https://pin.it/1jJdj4G
- color 1: #F2BB13
- color 2: #D91136
- color 3: #932BD9
- color 4: #29A632
- color 5: #F28B0C
- color WHITE: fill(255);
- color BLACK: fill(0);

Instructions:
Run program to generate a random sequence of shapes and colours.
The mouseButton LEFT click, with the Hold Action, will halt the sequence.
The mouseButton RIGHT click will save the current image as PNG file.
Upon releasing the mouse click, the counter is reset to zero and the 
sequence starts again.

Known bugs/problems: 
When a mouse button is pressed to stop/save the sequence
sometimes there is slight latency. This could be due to the logic in the code
or my CPU specs.

Sources/Links:
https://processing.org/examples/redraw.html
https://processing.org/examples/noloop.html
https://processing.org/examples/loop.html
https://processing.org/reference/saveFrame_.html
I focused on the "Structure" examples in particular the 
Loop(), noLoop() and reDraw() methodes etc. 

The draw() method does the following,
1. Set the background to black  
2. Counts the number of sequnces by calling the seqCounter() method
3. Sets 4 random varibales within the specified parameters
4. Calls the 2 custom methods to create a sequence of random shapes and colours 
    along the x-axis and y-axis, randomly, using a For Loop 
*/   

dermotmadsen's People

Contributors

dermie83 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.