본문 바로가기
fuse

brushes

by 루에 2016. 1. 6.
반응형

Brushes

Fuse는 도형에 색을 입히는 것에 대해 stroke와 fill 두가지 방법을 제공한다.

SolidColor

단순히 색을 입히기 위한 방법

<SolidColor Color="#00f" />

도형 안에 적용

<Rectangle>
    <SolidColor Color="#00f" />
</Rectangle>

아래 방법으로 동일한 효과를 제공한다.

<Rectangle Fill="#00f" />

ImageFill

도형에 이미지를 채우기 위해서는 ImageFill을 사용해야 한다.

<Circle Width="160" Height="160">
    <ImageFill File="Portrait.png" />
</Circle>

같은 방법으로 스케치모드를 설정할 수 있다.

LinearGradient

브러쉬를 사용해 그라데이션 효과를 준다.

<LinearGradient StartPoint="0,0" EndPoint="0,1">
    <GradientStop Offset="0" Color="#fff" />
    <GradientStop Offset="1" Color="#000" />
</LinearGradient>

The StartPoint and EndPoint are both X and Y offsets within the Shape the brush is used in, so you can specify a diagonal brush by using StartPoint="0,0" EndPoint="1,1".

Instead of StartPoint and EndPoint, you can also specify an angle. This can either be in radians using the Angleproperty, or in degrees using the AngleDegrees property.

<LinearGradient Angle="2.4" />

             or

<LinearGradient AngleDegrees="45">


반응형

댓글