Class PatternSettings
java.lang.Object
at.petrak.hexcasting.client.render.PatternSettings
A class holding settings for shaping and positioning patterns.
By default, it's a simple wrapper of 3 records, however some use cases may require extending and overriding getters.
This is done to keep the complexity of the records a bit lower.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordSettings for positioning the pattern and defining its general size/render area.static final recordSettings for stroke and dot sizings.static final recordControls how the pattern is zappified. -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionPatternSettings(String name, PatternSettings.PositionSettings posSets, PatternSettings.StrokeSettings strokeSets, PatternSettings.ZappySettings zapSets) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetCacheKey(HexPatternLike patternlike, double seed) floatdoublegetGridDotsRadius(double scale) intgetHops()doubledoublegetInnerWidth(double scale) floatdoubledoublegetName()doublegetOuterWidth(double scale) floatfloatgetSpeed()doublegetStartDotRadius(double scale) doublegetStrokeWidth(double scale) doubledoubledoublefloatdouble
-
Field Details
-
posSets
-
strokeSets
-
zapSets
-
-
Constructor Details
-
PatternSettings
public PatternSettings(String name, PatternSettings.PositionSettings posSets, PatternSettings.StrokeSettings strokeSets, PatternSettings.ZappySettings zapSets)
-
-
Method Details
-
getCacheKey
-
getName
-
getTargetWidth
public double getTargetWidth() -
getTargetHeight
public double getTargetHeight() -
getHorPadding
public double getHorPadding() -
getVertPadding
public double getVertPadding() -
getHorAlignment
-
getVertAlignment
-
getBaseScale
public double getBaseScale() -
getMinWidth
public double getMinWidth() -
getMinHeight
public double getMinHeight() -
getInnerWidth
public double getInnerWidth(double scale) -
getOuterWidth
public double getOuterWidth(double scale) -
getStartDotRadius
public double getStartDotRadius(double scale) -
getGridDotsRadius
public double getGridDotsRadius(double scale) -
getStrokeWidth
public double getStrokeWidth(double scale) -
getStrokeWidthGuess
public double getStrokeWidthGuess() -
getHops
public int getHops() -
getVariance
public float getVariance() -
getFlowIrregular
public float getFlowIrregular() -
getReadabilityOffset
public float getReadabilityOffset() -
getLastSegmentProp
public float getLastSegmentProp() -
getSpeed
public float getSpeed()
-