Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gianttreelp/processing-utils
A collection of utilities to aid developers using Processing. Built on Kotlin for even more usefulness.
https://github.com/gianttreelp/processing-utils
library processing processing-toolbox utilities utility-library utils
Last synced: 16 days ago
JSON representation
A collection of utilities to aid developers using Processing. Built on Kotlin for even more usefulness.
- Host: GitHub
- URL: https://github.com/gianttreelp/processing-utils
- Owner: GiantTreeLP
- License: lgpl-3.0
- Created: 2017-02-04T21:22:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T12:42:37.000Z (about 4 years ago)
- Last Synced: 2024-11-05T19:12:58.144Z (2 months ago)
- Topics: library, processing, processing-toolbox, utilities, utility-library, utils
- Language: Kotlin
- Size: 38.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# processing-utils
A collection of utilities to aid developers using Processing. Built on Kotlin for even more usefulness.[![Build Status](https://travis-ci.org/GiantTreeLP/processing-utils.svg?branch=master)](https://travis-ci.org/GiantTreeLP/processing-utils)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.gianttreelp/gtlp-processing-utils/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.gianttreelp/gtlp-processing-utils)
[![Dependencies](https://app.updateimpact.com/badge/831936721338896384/processing-utils.svg?config=test)](https://app.updateimpact.com/latest/831936721338896384/processing-utils)
[![Dependency Status](https://www.versioneye.com/user/projects/58a71900a782d1002e644046/badge.svg?style=flat)](https://www.versioneye.com/user/projects/58a71900a782d1002e644046)
[![GitHub release](https://img.shields.io/github/release/gianttreelp/processing-utils.svg)](https://github.com/GiantTreeLP/processing-utils/releases)Example:
-----
Vector - A nice vector that allows the use of infix operators to behave naturally and less like Java's BigDecimal.// Naturally add Vectors together
Vector(1, 2) + Vector(3, 4) = Vector(4, 6)
// Multiply by a scalar
Vector(1, 1, 1) * 10 = Vector(10, 10, 10)
Extensions.kt - Extensions for various Processing methods// Map a number from a range to another range without casting to Float
var ten = map(0.1, 0, 1, 0, 100)
ten = 10f // 10 as a FloatFloatRange - A range from some decimal number to another
// Go from 0 to 10 with a step of 0.25 and print the number in the process
(0f..10f step 0.25f).forEach {
println(it)
}