JEKO10 / Alpaca-Image-Generator

This is an image generator website that allows users to generate, combine, and download images.

Home Page:https://jeko10.github.io/Alpaca-Image-Generator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alpaca Image Generator
(React)


Table of contents

Project task

This is a solution to the DevProjects. Created in React, using local alpacaConfig file. You are able to generate and download alpaca avatars.

Project overview

Firstly, I set up states for every single alpaca part. Then, displayed all image parts with the map method, and using the switch statement, parts are changing on the image. You are able to change its neck, mouth, hair, ears, eyes, leg, etc. There are 2 buttons, for generating random alpaca and downloading the image. Random generating was created by using the Math.floor(Math.random() * number of options) function. Downloading images is powered by DownloadJS and Html to image packages.

Built with

  • React
  • Sass
  • Downloadjs
  • Html to image
  • GitHub Pages

Live preview

Click for live preview

About

This is an image generator website that allows users to generate, combine, and download images.

https://jeko10.github.io/Alpaca-Image-Generator/


Languages

Language:JavaScript 72.6%Language:SCSS 19.0%Language:HTML 8.3%