Replies: 1 comment
|
명작 기대하겠습니다~! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
과제 링크 : Pochita.cpp
저에게는 꿈이있었습니다.
api 활용해서 예제파일만들어보라는 간단한 과제라는 이야기를 듣자마자
세상을 바꿀만한 명작을 만들고싶다라는 야망을 품었지만
정작 동그라미 찍기, 선그리기 , 좌표값으로 그림배치하기에도 제 능력의 상당부분을 써야했기에 (다른분들 진짜 존경스럽습니다ㅠ)
고로 그냥 간단한 도형을 합쳐서 귀여운 포치타쿤을 그려봤습니다. (꽤 많은 시간 할애)
사용한 API
Shape 생성 / 캔버스
tvg::Shape::gen()canvas->add(shape)경로(Path) 그리기
moveTo(x, y)lineTo(x, y)cubicTo(cx1, cy1, cx2, cy2, x, y)close()appendCircle(cx, cy, rx, ry)appendRect(x, y, w, h, rx, ry)채우기(Fill)
fill(r, g, b)선(Stroke)
strokeWidth(width)strokeFill(r, g, b)strokeJoin(tvg::StrokeJoin::Round)strokeCap(tvg::StrokeCap::Round)후기
만드는데 엄청난 트러블 슈팅이 있었다기 보다는 그냥 계~~~속 예제 껐다켰다하면서 잘 만들어지나 확인하면서 진행했던것같습니다.
마무리하면서
그렇다고 명작을 만들겠다는 야망을 버린게 아닙니다.
기필코 thorVG를 활용해서 세상을 놀라게하겠습니다.
All reactions