Socket
Book a DemoInstallSign in
Socket

victor

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victor

0.5.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Victor - Ruby SVG Image Builder

Gem Version Build Status Maintainability

victor.dannyb.co

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

  • Victor Homepage

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.

FAQs

Package last updated on 29 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.