Skip to main content

Fractal texture engine for procedural and infinite-detail textures.

Project description

Fractex

Fractex — библиотека для генерации процедурных фрактальных текстур и шума с бесконечной детализацией.

Репозиторий: https://github.com/xtimon/fractex.git

Установка

pip install fractex

Быстрый старт

from fractex import FractalParams, FractalGenerator, InfiniteTexture

params = FractalParams(seed=42, detail_level=2.0)
generator = FractalGenerator(params)

clouds = InfiniteTexture(generator, "clouds")
tile = clouds.generate_tile(0, 0, 256, 256, zoom=1.0)
print(tile.shape, tile.min(), tile.max())

CLI

fractex --list
fractex splash --preset lava
fractex terrain --interactive --fps 30 --scale 1.0

Интерактивный API

import fractex as fx

print(fx.list_examples())
fx.run_example("splash", ["--preset", "marble", "--fps", "30"])

Возможности

  • Фрактальный шум (fBm), симплекс‑шум
  • Бесконечная детализация через адаптивные октавы
  • Пресеты текстур: облака, мрамор, дерево, лава, вода и др.
  • Интерактивные примеры с адаптацией качества к FPS

Лицензия

MIT License. См. файл LICENSE.

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

fractex-0.2.1.tar.gz (108.4 kB view details)

Uploaded Source

Built Distribution

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

fractex-0.2.1-py3-none-any.whl (124.5 kB view details)

Uploaded Python 3

File details

Details for the file fractex-0.2.1.tar.gz.

File metadata

  • Download URL: fractex-0.2.1.tar.gz
  • Upload date:
  • Size: 108.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fractex-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a6306ac8b8ef456548cf536925bd38fad5952842af867dea68ce5b9f811ab335
MD5 b81fff4f94438deeeb594b5f8879ac2b
BLAKE2b-256 7b7565077ce4b5603aab79b97c57800da71b765d55fdae30736ad770ba3e153c

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractex-0.2.1.tar.gz:

Publisher: pypi.yaml on xtimon/fractex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fractex-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: fractex-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 124.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fractex-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71364a10c632a24f59f3e6c8f2c0dbed723962da71cc537939c70d4a47c3ad9f
MD5 ced30075224f3c20cbfb02a4d51ad77b
BLAKE2b-256 aa11f6247b8b3c9508b3207f54d8e977d40ad2dcd5c1118011a96a8e66a954e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractex-0.2.1-py3-none-any.whl:

Publisher: pypi.yaml on xtimon/fractex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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