Skip to main content

Pseudorandom and procedural generation library using 64.61 fixed point

Project description

PyPI version

Cairo Rand 64x61

A psuedrandom and procedural generation library using 64.61 fixed point math for Cairo

Usage

Install with pip install cairo_rand_64x61 and import and use with from cairo_rand_64x61.simplex import Simplex.

Signed 64.61 Fixed Point Numbers

This library is heavily dependend on 64.61 bit fixed point numbers. See https://github.com/influenceth/cairo-math-64x61 for more information.

Simplex Library

Simplex includes an implementation of a three-dimensional simplex noise based on the GLSL implementation found here: https://github.com/ashima/webgl-noise/blob/master/src/noise3D.glsl. It is tested against output of the GLSL library. Keep in mind that in many cases the GLSL implementation will be run on GPUs using medium precision which will lead to errors with large input values for x, y, z. This cairo library does NOT attempt to mimic this error (this error will also disappear if using high precision on GPU).

Extensibility

This library strives to adhere to the OpenZeppelin extensibility pattern: https://docs.openzeppelin.com/contracts-cairo/0.2.1/extensibility#libraries

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cairo_rand_64x61-2.0.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cairo_rand_64x61-2.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file cairo_rand_64x61-2.0.0.tar.gz.

File metadata

  • Download URL: cairo_rand_64x61-2.0.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for cairo_rand_64x61-2.0.0.tar.gz
Algorithm Hash digest
SHA256 9c0e4ac06df8b4c30f407bf5a6a5d73312bcad4cb205f3d62e66cb0f7040a65f
MD5 d1372aab93f257dbacf25e2ddf89cd7e
BLAKE2b-256 2cc27907ac25c106f398bdc0f4e3fe4063143c6b7e3b1f1c3e4f85d1a36ff0c9

See more details on using hashes here.

File details

Details for the file cairo_rand_64x61-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cairo_rand_64x61-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1dccfb6377a618f6c30983f38b516dd78bbc61acc04e187c6ca2415701596cd
MD5 4c8916434088d59465f350fa8bf7ac14
BLAKE2b-256 4cb776dd4f76f2bac11f09f2bfa08a548c79b5979c8330ba965b5656d6ffd114

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page