Boyer, Vincent2015-11-112015-11-1120011017-4656https://doi.org/10.2312/egs.20011037One of the most important functions of paintboxes is drawing curves. These primitives have been programmed and the user can never add a new program which computes the discrete points of a given function. Using metaprogramming and the Jordan’s method, our program CAPC automatically generates, for a given function, a new program which computes the discrete points for this function and adds it to our paintbox tool.Metaprogramming for the Generation of Nonparametric Curves