zoom - implementing a zooming algorithm like in photoshop -
i developing editor 2d game modeling open gl , want implement zooming it. archive similar zooming algorithm used in photoshop. goes this:
- you have 21 different levels of zoom (10 zoom in, 10 zoom out , 1 neutral)
- when zoom in levels are: 200%, 300%, 400%, 500%, 600%, 700%, 800%, 1200%, 3200%
- when zoom out levels are: 66,7%, 50%, 33%, 25%, 16,7%, 12,5%, 9,1%, 8,3%, 6,25%, 5%
the problem having have no idea how calculate these numbers.. wondering if knows if there specific formula calculate levels of zoom or hardcoded photoshop?
i guess hardcoded. numbers adjusted specific use cases users of photoshop. in case of zoom out:
- 1:2, 1/3, 1/4, 1/6, 1/8, 1/11, 1/12, 1/16, 1/20
- same zoom in. specific needs of users.
it therefore more of question user experience algorithm.
Comments
Post a Comment