Skip to content
프로젝트

소개

Ruby SVG Image Builder

창작 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Victor - Ruby SVG Image Builder

victor.dannyb.co


repocard

Victor is a lightweight, zero-dependencies Ruby library that lets you build SVG images using Ruby code.


Install

$ gem install victor

Example

setup viewBox: '0 0 100 100'

build do
  rect x: 0, y: 0, width: 100, height: 100, fill: :white
  circle cx: 50, cy: 50, r: 40, fill: 'yellow'
  rect x: 10, y: 50, width: 80, height: 50, fill: :yellow

  [25, 50].each do |x|
    circle cx: x, cy: 40, r: 8, fill: :white
  end

  path fill: 'white', d: %w[
    M11 100 l13 -15 l13 15 l13 -15 
    l13 15 l13 -15 l13 15 Z
  ]
end

Documentation

Contributing / Support

If you experience any issue, have a question or a suggestion, or if you wish to contribute, feel free to open an issue or start a discussion.

관련 프로젝트 살펴보기

불러오는 중…