MCPcopy Create free account
hub / github.com/Card-Forge/forge / scale

Method scale

forge-gui-mobile/src/forge/util/Utils.java:40–44  ·  view source on GitHub ↗
(float value)

Source from the content-addressed store, hash-verified

38 }
39
40 public static float scale(float value) {
41 //use height ratio to prioritize making fonts look good
42 //fonts can always auto-scale down if container not wide enough
43 return Math.round(value * HEIGHT_RATIO);
44 }
45
46 public static long secondsToTimeSpan(float seconds) {
47 return (long)(seconds * 1000000000l);

Callers 15

AdventureDeckHeaderMethod · 0.95
getMethod · 0.95
LoadingOverlayClass · 0.95
drawOverlayMethod · 0.95
HeaderClass · 0.95
BackIconClass · 0.95
TargetingOverlayClass · 0.95
drawArrowMethod · 0.95
drawOverlayMethod · 0.95
OutcomesPanelClass · 0.95
VPhaseIndicatorClass · 0.95
doLayoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected