Bitmap/Bézier curves/Cubic: Difference between revisions

Content added Content deleted
(Added solution for MATLAB)
Line 425: Line 425:


=={{header|MATLAB}}==
=={{header|MATLAB}}==
Save this in the @Bitmap folder as bezierCurve.mat.
Note: Store this function in a file named "bezierCurve.mat" in the @Bitmap folder for the Bitmap class defined [[Bitmap#MATLAB|here]].
<lang MATLAB>
<lang MATLAB>
function bezierCurve(obj,pixel_0,pixel_1,pixel_2,pixel_3,color,varargin)
function bezierCurve(obj,pixel_0,pixel_1,pixel_2,pixel_3,color,varargin)