-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from ebeeton/54-add-a-button-to-the-plot-form-…
…to-randomize-the-plot-area 54 add a button to the plot form to randomize the plot area
- Loading branch information
Showing
6 changed files
with
77 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// A record of a individual plot. | ||
export default interface Plot { | ||
readonly CreatedAt: string; | ||
readonly UpdatedAt: string; | ||
readonly ID: number; | ||
readonly Filename: string; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Region from "./region"; | ||
import Stop from "./stop"; | ||
|
||
// Parameters used to plot the 'brot. | ||
export default interface PlotParams { | ||
readonly sampleSize: number, | ||
readonly maxIterations: number, | ||
readonly region: Region, | ||
readonly width: number, | ||
readonly height: number, | ||
readonly gradient: Stop[] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Plot area of the complex plane. | ||
export default interface Region { | ||
readonly minReal: number, | ||
readonly maxReal: number, | ||
readonly minImag: number, | ||
readonly maxImag: number | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// A hex color and its position in a gradient. | ||
export default interface Stop { | ||
readonly color: string, | ||
readonly position: number | ||
}; |