This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rmagick' | |
iclude Math | |
def annotate_on_arc(img, str, wc, r, x0, y0, theta0, font, fill, stroke, size) | |
# img rmagick draw Macick::Image object | |
# str annotate string | |
# wc width of one charator[px] | |
# r, x0 ,y0 radius and center point[px] of circle(arc) | |
# theta0 angle at center of string[rad] | |
# font, size font familiy and font size[pt?] |