
1. UIDrawBrushGradient::delStop 함수는 brush gradient에서 특정 정지점(stopto) 삭제하는 역할을 합니다.
2. delStop 함수를 사용하는 방법은 다음과 같습니다.
- UIDrawBrushGradient 객체를 생성하고,
- stopPointIndex를 지정하여 delStop 함수를 호출합니다.
- 예를 들어, UIDrawBrushGradient brush;
- brush.delStop(0);
3. stopPointIndex는 삭제할 정지점의 인덱스를 나타냅니다.
4. stopPointIndex를 변경하면 brush gradient의 모양이 변하지 않습니다.
- brush gradient는 정지점의 순서에 따라 그려지기 때문에, 정지점의 인덱스를 변경하면 brush gradient의 모양이 변하지 않습니다.
- 하지만, 정지점의 위치를 변경하면 brush gradient의 모양이 변합니다.
- 예를 들어, brush.stopPoint(0, 10, 20);
- brush.stopPoint(1, 30, 40);
- brush.delStop(0);
- brush.stopPoint(0, 15, 25);
- 이 경우, brush gradient의 모양이 변합니다.
2025-07-04 00:05