npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ion-cloud/core

v2.8.2

Published

JavaScript game engine with animation, scene management & map generation

Downloads

13

Readme

ion-cloud

JavaScript game engine by Nathaniel Inman.

Example

Description

Ion Cloud is a JavaScript game engine available on npm at @ion-cloud/core. Alternatively you can individually choose and load just the components you need:

  • Easel : sets up a canvas that can fill a screen and automatically resize
  • Ion : tweaning and basic animation instance
  • Cloud : animation collections and scene management
  • Ink : A tiny color manipulation and translation library with robust validation and error handling that shines in places where you can't trust the input color or random generation and games
    • here is the documentation @ion-cloud/ink
    • translate between color spaces: hex, cmyk, rgb, rgba, hsl, hsla, hsva, hsv, hsba or hsb
    • apply weights to r(ed),g(green),b(lue),l(ightness) or s(aturation)
    • apply a minimum or maximum lightness threshold on a color
    • coerce a color to a certain lightness percent
    • apply a minimum or maximum saturation threshold on a color
    • coerce a color to a certain saturation percent
    • apply an alpha value
    • output to javascript object {r,g,b,a}
  • Phaser : gradient animation and initialization helper
  • Dice: take a complex dice string and compute results based on it.
    • here is the documentation @ion-cloud/dice
    • 3d8+23-2d4 would roll 3 8-sided dice, add 23 then subtract the results of 2 rolled 4-sided dice
  • Compass: JavaScript mapping classes and random generation algorithms.

If you need help setting up a project using @ion-cloud/core you can use a scaffolding engine like slush. For more information see this project.

Setup

You can install the entire JavaScript ion-cloud engine simply by

npm i @ion-cloud/core

and then importing only what you need into your project with

import {Easel,Ion} from '@ion-cloud/core';

Alternatively you can install only the components you need such as

npm i -g @ion-cloud/dice

And then using just those in your project

import {Dice} from '@ion-cloud/dice';