<commit_before>package openfl._v2.display;


import openfl.display.GradientType;
import openfl.display.GraphicsPathWinding;
import openfl.display.InterpolationMethod;
import openfl.geom.Matrix;
import openfl.Lib;
import openfl.display.Tilesheet;


class Graphics {
	
	
	public static inline var TILE_SCALE = 0x0001;
	public static inline var TILE_ROTATION = 0x0002;
	public static inline var TILE_RGB = 0x0004;
	public static inline var TILE_ALPHA = 0x0008;
	public static inline var TILE_TRANS_2x2 = 0x0010;
	public static inline var TILE_RECT = 0x0020;
	public static inline var TILE_ORIGIN = 0x0040;
	private static inline var TILE_SMOOTH = 0x1000;
	public static inline var TILE_BLEND_NORMAL = 0x00000000;
	public static inline var TILE_BLEND_ADD = 0x00010000;
	
	@:noCompletion private var __handle:Dynamic;
	
	
	public function new (handle:Dynamic) {
		
		__handle = handle;
		
	}
	
	
	public function arcTo (controlX:Float, controlY:Float, x:Float, y:Float):Void {
		
		lime_gfx_arc_to (__handle, controlX, controlY, x, y);
		
	}
	
	
	public function beginBitmapFill (bitmap:BitmapData, matrix:Matrix = null, repeat:Bool = true, smooth:Bool = false):Void {
		
		lime_gfx_begin_bitmap_fill (__handle, bitmap.__handle, matrix, repeat, smooth);
		
	}
	
	
	public function beginFill (color:Int, alpha:Float = 1.0):Void {
		
		lime_gfx_begin_fill (__handle, color, alpha);
		
	}
	
	
	public function beginGradientFill (type:GradientType, colors:Array<Dynamic>, alphas:Array<Dynamic>, ratios:Array<Dynamic>, matrix:Matrix = null, spreadMethod:SpreadMethod = null, interpolationMethod:InterpolationMethod = null, focalPointRatio:Float = 0.0):Void {
		
		if (matrix == null) {
			
			matrix = new Matrix ();
			matrix.createGradientBox (200, 200, 0, -100, -100);
			
		}
		
		lime_gfx_begin_gradient_fill (__handle, Type.enumIndex (type), colors, alphas, ratios, matrix, spreadMethod == null ? 0 : Type.enumIndex (spreadMethod), interpolationMethod == null ? 0 : Type.enumIndex (interpolationMethod), focalPointRatio);
		
	}
	
	
	public function clear ():Void {
		
		lime_gfx_clear (__handle);
		
	}
	
	
	public function copyFrom (sourceGraphics:Graphics):Void {
		
		openfl.Lib.notImplemented ("Graphics.copyFrom");
		
	}
	
	<commit_msg>Add 'not implemented' message to v2 graphics.cubicCurveTo<commit_after>package openfl._v2.display;


import openfl.display.GradientType;
import openfl.display.GraphicsPathWinding;
import openfl.display.InterpolationMethod;
import openfl.geom.Matrix;
import openfl.Lib;
import openfl.display.Tilesheet;


class Graphics {
	
	
	public static inline var TILE_SCALE = 0x0001;
	public static inline var TILE_ROTATION = 0x0002;
	public static inline var TILE_RGB = 0x0004;
	public static inline var TILE_ALPHA = 0x0008;
	public static inline var TILE_TRANS_2x2 = 0x0010;
	public static inline var TILE_RECT = 0x0020;
	public static inline var TILE_ORIGIN = 0x0040;
	private static inline var TILE_SMOOTH = 0x1000;
	public static inline var TILE_BLEND_NORMAL = 0x00000000;
	public static inline var TILE_BLEND_ADD = 0x00010000;
	
	@:noCompletion private var __handle:Dynamic;
	
	
	public function new (handle:Dynamic) {
		
		__handle = handle;
		
	}
	
	
	public function arcTo (controlX:Float, controlY:Float, x:Float, y:Float):Void {
		
		lime_gfx_arc_to (__handle, controlX, controlY, x, y);
		
	}
	
	
	public function beginBitmapFill (bitmap:BitmapData, matrix:Matrix = null, repeat:Bool = true, smooth:Bool = false):Void {
		
		lime_gfx_begin_bitmap_fill (__handle, bitmap.__handle, matrix, repeat, smooth);
		
	}
	
	
	public function beginFill (color:Int, alpha:Float = 1.0):Void {
		
		lime_gfx_begin_fill (__handle, color, alpha);
		
	}
	
	
	public function beginGradientFill (type:GradientType, colors:Array<Dynamic>, alphas:Array<Dynamic>, ratios:Array<Dynamic>, matrix:Matrix = null, spreadMethod:SpreadMethod = null, interpolationMethod:InterpolationMethod = null, focalPointRatio:Float = 0.0):Void {
		
		if (matrix == null) {
			
			matrix = new Matrix ();
			matrix.createGradientBox (200, 200, 0, -100, -100);
			
		}
		
		lime_gfx_begin_gradient_fill (__handle, Type.enumIndex (type), colors, alphas, ratios, matrix, spreadMethod == null ? 0 : Type.enumIndex (spreadMethod), interpolationMethod == null ? 0 : Type.enumIndex (interpolationMethod), focalPointRatio);
		
	}
	
	
	public function clear ():Void {
		
		lime_gfx_clear (__handle);
		
	}
	
	
	public function copyFrom (sourceGraphics:Graphics):Void {
		
		openfl.Lib.notImplemented ("Graphics.copyFrom");
		
	}
	
	
	public function cubicCurveTo (controlX1:Float, controlY1:Float, controlX2:Float, controlY2:Float, anchorX:Float, anchorY:Float):Void {
		
		openfl.Lib.notImplemented ("Graphics.cubicCurveTo");
		
	}
	
	
{'fraction_non_alphanumeric': 0.09593392630241424, 'fraction_numerical': 0.0349428208386277, 'mean_word_length': 4.690361445783132, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6790586', 'n_tokens_mistral': 1806, 'n_tokens_neox': 1513, 'n_words': 383}