screen ratio calculation chairul umam
def (a, b) = ratio 1920, 1080
println "$a:$b"
def ratio(height, width) {
def gcd = gcd height, width
height > width ? [height / gcd, width / gcd] : [width / gcd, height / gcd]
}
def gcd(p, q) { q == 0 ? p : gcd(q, p % q) }
INFO