Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def render_coeff(width,hight,time):
- return float(time/(width*hight))
- def render_time(width,hight,coeff):
- return float((width*hight)*coeff)
- ri = input("enter rendered image width, hight, time: ")
- l = ri.split(',')
- coeff = render_coeff(int(l[0]),int(l[1]),int(l[2]))
- ri2 = input("enter width and hight for final image")
- l2 = ri2.split(',')
- print("rendertime for this image is ", render_time(int(l2[0]), int(l2[1]), coeff), " seconds")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement