On this page:
Rhombus Logo
draw
size
red
blue
save_  png
save_  svg
to_  pict
8.16.0.4

Rhombus Logo🔗ℹ

 import: rhombus/logo package: rhombus-logo-lib

The Rhombus logo is also available as pre-rendered PNG and SVG images from the "rhombus-icons" package.

function

fun logo.draw(dc :: draw.DC,

              ~dx: dx :: Real = 0,

              ~dy: dy :: Real = 0)

 

value

def logo.size :: draw.Size

Draws the Rhombus logo.

value

def logo.red :: draw.Color

 

value

def logo.blue :: draw.Color

Colors used in the Rhombus logo.

function

fun logo.save_png(path :: PathString,

                  ~as_square: as_square = #false)

 

function

fun logo.save_svg(path :: PathString,

                  ~as_square: as_square = #false)

Writes a rendered logo to a file.

function

fun logo.to_pict(dc :: ((draw.DC, Real, Real) -> ~any,

                        ~width: Real,

                        ~height: Real)

                   -> ~any)

Intended to support the Rhombus logo in pict.Pict form using the pict library, but without creating a dependency on pict: the pict.dc function can be supplied as dc, and then the result is a pict.Pict.