Skip to content

Imagination app made with react native. Takes your accelerometer and turns it into a color. This app works as a show room for imagination creations.

License

Notifications You must be signed in to change notification settings

Matzielab/imagination-react-native

Repository files navigation

imagination made with React Native

This is a new way of programming art. This app will serve as a display of different artworks made with the imagination library.

What is imagination?

Imagination for devices takes your accelerometer and turns it into a color. It was created by Matzie for Matzielab as an experimental way of interaction response.

precis movement preview shake

What is it good for?

Nothing and everything! It's basically just a visual response to movement or orientation. This app displays the usage of it in combination with visual art.

How to use the package

Simply install the package with

npm install imagination-react-native --save

Imagination itself

You can retrieve the color by passing a function that'll recieve a rgb string whenever the acceleromter updates. It's also good to stop the accelerometer listener when unmounting or so.

import {Imagination} from 'imagination-react-native'

componentDidMount() {
  Imagination.onColorChange( (color) => this.setState({color}) )
}

componentWillUnmount() {
  Imagination.stop()
}

ImaginationWrapper component

You can also use the ImaginationWrapper component. It automatically takes care of color changes and stopping. The background color of the component is updated to whatever color the accelerometer represents

import {ImaginationWrapper} from 'imagination-react-native'

render ():* {
  return(
    <ImaginationWrapper>
      <Text>Such colors, amaze, wow</Text>
    </ImaginationWrapper>
  )
}

How can i help out?

Imagination is always in the need of artists. If you're into making visual art, illustrations or animations or have any other idea of how to make artworks with this, hit me up and you'll be part of this universe. If you're a developer and like to help out, message me and we'll make a footprint on the art world together!

Todo

  • Store artorks in DynamoDB and S3 bucket on AWS
  • Load artworks via Lambda function from DB
  • Create contact form on InfoView
  • Fix perfectly looping Lottie animations
  • Deploy to Play Store
  • Deploy to AppStore
  • Baffle the art world forever

Credits

Imagination is an idea by Mathias Eriksson created for Matzielab

License

MIT License

Copyright (c) 2017 Mathias Eriksson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Imagination app made with react native. Takes your accelerometer and turns it into a color. This app works as a show room for imagination creations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published