Skip to content

ryosms/pixela2img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pixela2img

Create image files (or objects) from Pixela graphs.

example

  • Create a png image below!

Support

  • Python 3.6+

Usage

Install using pip.

$ pip install pixela2img

Create a png image with cli.

$ python -m pixela2img -u pixela2img -g pixela2img -d 20181229
$ open pixela2img-pixela2img-20181229.png

or Launch python interpreter and run command below

from pixela2img import Pixela2Img
pixela = Pixela2Img()

images = []
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181201'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181208'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181215'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181222'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181229'))

images[0].save('pixela.gif', save_all=True, append_images=images[1:], loop=0)

Created animation gif below!

for Developer

require

prepare

  1. clone (or fork) this repository.
  2. install dependencies
  3. edit code!
$ git clone https://github.com/ryosms/pixela2img
$ cd pixela2img
$ pipenv install
# or
$ poetry install

About

Create image files (or objects) from Pixela graphs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages