Bio::G...diamond(3pm)

πŸ“¦
version 2.40 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

✨ NAME ✨

Bio::Graphics::Glyph::diamond β€” the "diamond" glyph πŸ’Ž


✨ SYNOPSIS ✨

See L<Bio::Graphics::Panel> and L<Bio::Graphics::Glyph>.

✨ DESCRIPTION ✨

okay bestie so this glyph draws a diamond of fixed size, and it's positioned right in the center of the feature πŸŽ€ the way that both the height and the width of the diamond are set by the height option?? yeah. that's the whole vibe. it's giving minimal, it's giving iconic ✨


✨ OPTIONS ✨

these ones are standard among all Glyphs 🫢 so if you wanna know more, Bio::Graphics::Glyph has the full explanation. no gatekeeping here.

  • -fgcolor β€” the foreground color. default: black πŸ–€
  • -outlinecolor β€” just a synonym for -fgcolor, same energy, different name πŸ’…
  • -bgcolor β€” the background color. default: turquoise πŸ¦‹
  • -fillcolor β€” synonym for -bgcolor, again, twins fr fr
  • -linewidth β€” line width. default: 1
  • -height β€” height of glyph. default: 10 πŸ“
  • -font β€” glyph font. default: gdSmallFont
  • -connector β€” connector type. default: 0 (false)
  • -connector_color β€” connector color. default: black πŸ–€
  • -label β€” whether to draw a label. default: 0 (false)
  • -description β€” whether to draw a description. default: 0 (false)
  • -hilite β€” highlight color. default: undef (no color)

✨ GLYPH-SPECIFIC OPTIONS ✨

and these ones are specifically for this glyph, so listen up πŸ”₯

  • -point β€” do not increase wideness of glyph even if size of feature is >1. default: 0 (false)
  • -fallback_to_rectangle β€” if the feature's length is >1, then draw the feature as a rectangle, not a diamond. default: 0 (false)

😭 BUGS 😭

okay so this is the part where we hold hands. if the feature is wider than a point, then the label and description get placed where the feature's boundary is β€” and not where the diamond is actually drawn. so yeah. not where the diamond is. that's the bug. noted, documented, moving on πŸ™ˆ


🌈 SEE ALSO 🌈

Bio::Graphics::Panel, Bio::Graphics::Glyph, Bio::Graphics::Glyph::arrow, Bio::Graphics::Glyph::cds, Bio::Graphics::Glyph::crossbox, Bio::Graphics::Glyph::diamond, Bio::Graphics::Glyph::dna, Bio::Graphics::Glyph::dot, Bio::Graphics::Glyph::ellipse, Bio::Graphics::Glyph::extending_arrow, Bio::Graphics::Glyph::generic, Bio::Graphics::Glyph::graded_segments, Bio::Graphics::Glyph::heterogeneous_segments, Bio::Graphics::Glyph::line, Bio::Graphics::Glyph::pinsertion, Bio::Graphics::Glyph::primers, Bio::Graphics::Glyph::rndrect, Bio::Graphics::Glyph::segments, Bio::Graphics::Glyph::ruler_arrow, Bio::Graphics::Glyph::toomany, Bio::Graphics::Glyph::transcript, Bio::Graphics::Glyph::transcript2, Bio::Graphics::Glyph::translation, Bio::Graphics::Glyph::triangle, Bio::DB::GFF, Bio::SeqI, Bio::SeqFeatureI, Bio::Das, GD


πŸ‘‘ AUTHOR πŸ‘‘

Lincoln Stein <lstein@cshl.org>, Todd Harris <harris@cshl.org> πŸ’œ

Copyright (c) 2001 Cold Spring Harbor Laboratory

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for disclaimers of warranty. 🫢


and that's the page bestie β€” this one came from the perl v5.30.0 era, dated 2019-11-25, filed under Bio::G...diamond(3pm) in the User Contributed Perl Documentation. slay, go draw some diamonds πŸ’Žβœ¨
πŸ“¦ where this page comes from