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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fractex-0.1.1.tar.gz
  • Upload date:
  • Size: 105.7 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.1.tar.gz
Algorithm Hash digest
SHA256 c149c35e911398d6c0030f947582b0fd1edc3947b25f9bc1c9644ee9fa872e6c
MD5 95951a61ef6e65ff9d1ee6d84938e37d
BLAKE2b-256 fddef2dd097146c5eb92fdc5b6a6b80d826f24b9d3db15a25df8140ee7cfcfc9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: fractex-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2bc335ea6624f1692d32866149d2152ce40e0f738538acf1036f3f83fd3d340
MD5 2f15f0bfe972fe71d07160c403af015d
BLAKE2b-256 7d44698d6f0aad29f126f16b03d77b45c066e9c7f7a99520a9017dfe7af8dc12

See more details on using hashes here.

Provenance

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