Git Product home page Git Product logo

metabubbles's Introduction

Metabubbles

A generative art experiment with Angular 2+.

Based on the "Emergence" chapter in Matt Pearson's wonderful Generative Art book.

From Tero Parviainen's original tutorial Metabubbles: Making Generative Art with Angular 2 about this code:

Most people talk about Angular 2 as a platform for writing business applications. But there's no rule that says this is the only thing it should be used for. If you're in the mood for something fun, how about making some generative visual art?

You see, the same characteristics that make Angular 2 a useful framework for business app development also make it a fun platform for pure experimentation and self-expression through code.

Naturally, since this project is all about self-expression and there is no single correct way to construct it, I encourage you to tweak the visualization to your liking as you go through the tutorial, and to share your creation!

License

ISC

Author

  • Tero Parviainen @teropa : original author
  • David Czeck @czeckd : Typescript / Angular 4 adaptation

metabubbles's People

Contributors

czeckd avatar teropa avatar

Stargazers

 avatar  avatar Fernando Millan avatar Yönet avatar Maxime Burriez avatar Sabin Tudor avatar Marco de Jong avatar Sivanesan avatar  avatar Sivaraj Ambat avatar Tair Asim avatar Julian Mazzitelli avatar jk avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

czeckd un33k jasondt

metabubbles's Issues

Getting nothing when i use the same with polygon

import { Component } from '@angular/core';
@component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {

public sdspolygons;
ngOnInit() {
this.sdspolygons = [
{points:"150,75 258,137.5 258,262.5 150,325 42,262.6 42,137.5"},
];
}

ngOnDestroy() {
}

onAnimationFrame() {
}
}

@component({
selector: '[a-polygon]',
template: <svg:polygon points="200,10 250,190 160,210"></svg:polygon>
})
export class PolygonComponent {
}

app.component.html


<svg:g a-polygon
*ngFor="let polygon of sdspolygons">
/svg:g

Im not able to figure what is missing .Could you please help me .

Old version in the demo site?

Hi!

I think you have an old version here:
http://teropa.info/metabubbles/

..color values go over 255, because the parentheses are missing:

  red: timeStep % 255,
  green: timeStep + 170 % 230,
  blue: timeStep + 85 % 230,

Should be:

  red: timeStep % 255,
  green: (timeStep + 170) % 230,
  blue: (timeStep + 85) % 230,

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.