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.0.tar.gz (108.0 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.0-py3-none-any.whl (124.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fractex-0.2.0.tar.gz
  • Upload date:
  • Size: 108.0 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.0.tar.gz
Algorithm Hash digest
SHA256 7b3c863cd6fb3f6fbade7fcac6ffdd7aeb33e0ce8469f3a18a6153a9588a1a36
MD5 1760520bcc8673b130594270869e9e0e
BLAKE2b-256 be82529eceaab71293b4f101b88f81967d94675fef5a9a17e5373fb05f718436

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractex-0.2.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: fractex-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 124.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3b335d33e2ac6ddea0ed95489a4d82a0cd992202037cdc01246df6d1db930f0
MD5 4de89c6a9e327c76b62b6633e277afe5
BLAKE2b-256 0f81c0146a94a23f625702e3640e6fcd7581cd5dc77b701c65d6d73fe5300f40

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractex-0.2.0-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