이는 권선 그래픽 경로에 의해 야기된다.
Flash에서 Defining winding rules
flash.diplay.GraphicsPathWinding
, 기본 굴곡 규칙은 홀수이다. 편리한 방법을 사용하여 그려진 그래픽
import flash.display.GraphicsPathWinding;
graphics.drawPath(new <int>[], new <Number>[], GraphicsPathWinding.NON_ZERO);
는 lineTo()
, drawCircle()
, 또는 drawRect()
, 당신은 beginFill()
와 모양에 따라 endFill()
이 같이 그려진 수 : drawPath
를 사용하여 생산 그래픽
, 당신의 drawPath에 권선 GraphicsPathWinding.NON_ZERO
를 추가 :
var g:Graphics = graphics;
g.beginFill(0x123456)
g.drawRect(100, 100, 50, 50);
g.endFill();
g.beginFill(0x123456)
g.drawRect(125, 125, 50, 50);
g.endFill();
,451,515,
대신 :
var g:Graphics = graphics;
g.beginFill(0x123456)
g.drawRect(100, 100, 50, 50);
g.drawRect(125, 125, 50, 50);
g.endFill();
당신은 내가 아는 지식의 이상한하지만 가장 흥미로운 컬렉션이 있습니다. – Marty
다음으로 돌아 가기 : beginFill, endill for lineto가 작동하지 않습니다. 문제의 중복은 하나의 연속적인 "lineto"의 결과입니다. (위의 그림을 참조하십시오.) lineto를 drawPath로 변환하려고합니다. – teynon