发明名称 Adjusting eraser size in drawing applications
摘要 The method includes identifying, by one or more computer processors, a first location and a second location of input on a touch-sensitive surface. The method further includes calculating, by one or more computer processors, a distance between the first location and the second location. The method further includes identifying, by one or more computer processors, a first elapsed time between creation of the identified first location of input and the identified second location of input. The method further includes calculating, by one or more computer processors, a first size of an eraser based upon the identified first elapsed time. The method further includes generating, by one or more computer processors, an eraser path based upon the identified first location and the identified second location of input on a touch-sensitive surface, and the calculated first size of an eraser.
申请公布号 US9417786(B1) 申请公布日期 2016.08.16
申请号 US201615079159 申请日期 2016.03.24
申请人 International Business Machines Corporation 发明人 Becker Craig H.;Jaramillo David;Newhook Richard J.;Nguyen Duy V.;Temple Jon G.
分类号 G06F3/0488;G06T11/80 主分类号 G06F3/0488
代理机构 代理人 McLane Christopher;Simek Daniel R.
主权项 1. A computer program product for generating an eraser path, the computer program product comprising: one or more non-transitory computer readable storage media and program instructions stored on the one or more non-transitory computer readable storage media, the program instructions comprising: program instructions to identify a first location, a second location, and a third location of input touch-sensitive surface; program instructions to calculate a distance between the first location, the second location, and the third location; program instructions to identify a first elapsed time between creation of the identified first location of input and the identified second location of input; program instructions to identify a second elapsed time between creation of the identified second location of input and the identified third location of input; program instructions to calculate a first size of an eraser based upon the identified first elapsed time, wherein generating a first size of an eraser comprises: program instructions to utilize a Bezier curve to smooth a change in size between the calculated first size of an eraser and the calculated second size of the eraser, and wherein calculating a first size of an eraser based upon the identified first elapsed time comprises: program instructions to calculate a speed for the input on the touch sensitive surface to traverse from the first location of input to the second location of input as a function of distance over time; andprogram instructions to generate an eraser size for the second location of input based upon the calculated speed; program instructions to calculate a second size of an eraser based upon the identified second elapsed time, wherein generating a second size of an eraser comprises utilizing a Bezier curve to smooth a change in size between the calculated first size of an eraser and the calculated second size of the eraser; program instructions to generate an updated eraser path based upon the identified first location, the identified second location, and the identified third location of input on a touch-sensitive surface, and the calculated first size of an eraser and the calculated second size of an eraser, wherein generating an eraser path comprises utilizing a Bezier curve to create a curved path between the identified first location, the identified second location, and the third identified location; program instructions to identify a preset initial eraser size for the first identified location of input; program instructions to generate an eraser path based upon the identified first location and the identified second location of input on a touch-sensitive surface, and the identified preset initial eraser size for the first identified location, the calculated first size of an eraser; program instructions to identify a plurality of locations of input on a touch-sensitive surface; program instructions to identify a distance between each identified location of input and a subsequent location of input from the plurality of location of input; program instructions to identify a time elapsed between each locations of input and the subsequent location of input from the plurality of locations of input; program instructions to calculate a size of an eraser for each location of input based upon the identified time elapsed between each location of input and the subsequent location of the input from the plurality of locations of input; and program instructions to generate an eraser path based upon the plurality of locations of input and the calculated size of an eraser for each location of input.
地址 Armonk NY US