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.1.0.tar.gz (105.6 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.1.0-py3-none-any.whl (121.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fractex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ec4445e20212df9e2af674146a70a5dc5ce06e396c3659c5fbd871c4bb3f3c3
MD5 e1274d48e508b2d735b0833002a061b5
BLAKE2b-256 cbe53f7a54c803002f9ebd3ab4aaf34c0f28a6328f73520ddac51ae566a3b04d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: fractex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 121.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6a852ffa4876efd1286b4750850de5084b64a9d7e0d218b368a33a7211f9601
MD5 a122c544a7e7eb18bd9d6a865a5a6210
BLAKE2b-256 6c309a42cb787bda40f31ae109c00b5ce17bdc97cbe6de1d37b195bea2f7726c

See more details on using hashes here.

Provenance

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