Skip to content

Commit

Permalink
Merge pull request #2 from PolyhedralDev/ide
Browse files Browse the repository at this point in the history
Fancy noise editor
  • Loading branch information
dfsek authored Mar 29, 2021
2 parents b2c1362 + ea64e07 commit 10469dd
Show file tree
Hide file tree
Showing 23 changed files with 1,501 additions and 184 deletions.
35 changes: 21 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,48 @@
# Noise Tool

A generic name for a generic program.

This tool allows you to visualise noise.
Specifically, you can visualise noise as defined by Terra configuration files. The tool can show you information about
the noise, including:
This tool allows you to visualise noise. Specifically, you can visualise noise as defined by Terra configuration files.
The tool can show you information about the noise, including:

* 2D maps of the noise function itself
* Minimum/Maximum values of the function
* Plots of the distribution of noise values
* Time taken to generate the noise

# Using the tool
To use the tool, simply download the latest release, and put it in a folder.
Run the tool from the command line via `java -jar NoiseTool-VERSION.jar`.
When you run the tool, a GUI will open showing a view of the noise, min/max values, the seed, and the time taken to
generate it. The view is 1024x1024.

To use the tool, simply download the latest release, and put it in a folder. Run the tool from the command line
via `java -jar NoiseTool-VERSION.jar`. When you run the tool, a GUI will open showing a view of the noise, min/max
values, the seed, and the time taken to generate it. The view is 1024x1024.

When you run the tool it will create a configuration file, `config.yml` in the same directory. This config is identical
to Terra noise configs.
[here](https://github.com/PolyhedralDev/Terra/wiki/Noise-Options).

## Reloading the config

This tool allows you to reload the config live. To do so, simply press `r`.

## Randomizing seed

To randomize the seed, press `s`.

## Plotting distribution

To plot the distribution of the noise function at the bottom of the window, press `d`.

## Colorizing
To colorize noise (useful for visualizing the actual distribution of things in probability collections), create
a file in the same directory as the noise tool called `color.yml`. This file has 2 keys:
* `enable` - Whether to pull colors from a probability collection rather than from noise values.
* `colors` - A probability collection of colors. They are represented in a raw integer format. You may use
hexadecimal color notation by prefixing hex values with `0x`.

Example `color.yml`:

To colorize noise (useful for visualizing the actual distribution of things in probability collections), create a file
in the same directory as the noise tool called `color.yml`. This file has 2 keys:

* `enable` - Whether to pull colors from a probability collection rather than from noise values.
* `colors` - A probability collection of colors. They are represented in a raw integer format. You may use hexadecimal
color notation by prefixing hex values with `0x`.

Example `color.yml`:

```yaml
colors:
0xff0000: 1
Expand Down
11 changes: 9 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "com.dfsek"
version = "0.5.1"
version = "1.0.0"

repositories {
maven { url = uri("https://repo.codemc.org/repository/maven-public") }
Expand All @@ -14,12 +14,19 @@ repositories {
dependencies {
testCompile("junit", "junit", "4.12")
implementation("com.dfsek:Tectonic:1.2.3")
implementation("com.dfsek.terra.common:common:4.3.0-BETA+6d51da31")
implementation("com.dfsek.terra.common:common:5.0.0-BETA+7f11373f")
implementation("org.yaml:snakeyaml:1.27")
implementation("com.dfsek:Paralithic:0.3.2")
implementation("commons-io:commons-io:2.8.0")
implementation("net.jafama:jafama:2.3.2")
implementation("org.ow2.asm:asm:9.0")

implementation("com.fifesoft:rstaui:3.1.1")
implementation("com.fifesoft:rsyntaxtextarea:3.1.2")
implementation("com.fifesoft:autocomplete:3.1.1")


implementation("com.formdev:flatlaf:1.0")
}


Expand Down
Loading

0 comments on commit 10469dd

Please sign in to comment.