Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. slow day. so may as well share another victory

slow day. so may as well share another victory

Scheduled Pinned Locked Moved The Lounge
designcomgraphicsiothelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • honey the codewitchH Offline
    honey the codewitchH Offline
    honey the codewitch
    wrote on last edited by
    #1

    I got it working. My SVG builder is now producing shapes and such. What a beautiful thing.

    svg_doc_builder builder;
    svg_shape_info si;
    si.stroke.color = color>::white;
    si.fill.type = svg_paint_type::color;
    si.fill.color = color>::red;
    gfx_result res = builder.add_ellipse({20,20},{10,10},si);
    if(res!=gfx_result::success) {
    printf("Error: %d\r\n",(int)res);
    return 1;
    }
    svg_doc doc;
    builder.to_doc({40,40}, &doc);

    First and second attempts below (rendered to ascii)

                 ,++
               +O@$#,
             ,%O+~~1@=
            ~@!~~~~~;%O~
           ,@+~~~~~~~~=O!.
           %!~~~~~~~~~~~1O~
          +$~~~~~~~~~~~~~=@!
          O+~~~~~~~~~~~~~~;%1
         ,O~~~~~~~~~~~~~~~~~$x
         ;%~~~~~~~~~~~~~~~~~;@.
         +1~~~~~~~~~~~~~~~~~~%;
         =1~~~~~~~~~~~~~~~~~~1=
         ;%~~~~~~~~~~~~~~~~~~%;
         ,O~~~~~~~~~~~~~~~~~~O,
          O+~~~~~~~~~~~~~~~~+O
          +$~~~~~~~~~~~~~~~~$+
           %!~~~~~~~~~~~~~~!%
           ,@+~~~~~~~~~~~~+@,
            ~@!~~~~~~~~~~!@~
             ,%O+~~~~~~+O%,
               +O@%%%%@O+
                 ,++++,
    
                 ,++++,
               +O@%%%%@O+
             ,%O+~~~~~~+O%,
            ~@!~~~~~~~~~~!@~
           ,@+~~~~~~~~~~~~+@,
           %!~~~~~~~~~~~~~~!%
          +$~~~~~~~~~~~~~~~~O+
          O+~~~~~~~~~~~~~~~~+O
         ,O~~~~~~~~~~~~~~~~~~O,
         ;%~~~~~~~~~~~~~~~~~~%;
         +1~~~~~~~~~~~~~~~~~~1+
         =1~~~~~~~~~~~~~~~~~~1=
         ;%~~~~~~~~~~~~~~~~~~%;
         ,O~~~~~~~~~~~~~~~~~~O,
          O+~~~~~~~~~~~~~~~~+O
          +$~~~~~~~~~~~~~~~~$+
           %!~~~~~~~~~~~~~~!%
           ,@+~~~~~~~~~~~~+@,
            ~@!~~~~~~~~~~!@~
             ,%O+~~~~~~+O%,
               +O@%%%%@O+
                 ,++++,
    

    Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

    G 1 Reply Last reply
    0
    • honey the codewitchH honey the codewitch

      I got it working. My SVG builder is now producing shapes and such. What a beautiful thing.

      svg_doc_builder builder;
      svg_shape_info si;
      si.stroke.color = color>::white;
      si.fill.type = svg_paint_type::color;
      si.fill.color = color>::red;
      gfx_result res = builder.add_ellipse({20,20},{10,10},si);
      if(res!=gfx_result::success) {
      printf("Error: %d\r\n",(int)res);
      return 1;
      }
      svg_doc doc;
      builder.to_doc({40,40}, &doc);

      First and second attempts below (rendered to ascii)

                   ,++
                 +O@$#,
               ,%O+~~1@=
              ~@!~~~~~;%O~
             ,@+~~~~~~~~=O!.
             %!~~~~~~~~~~~1O~
            +$~~~~~~~~~~~~~=@!
            O+~~~~~~~~~~~~~~;%1
           ,O~~~~~~~~~~~~~~~~~$x
           ;%~~~~~~~~~~~~~~~~~;@.
           +1~~~~~~~~~~~~~~~~~~%;
           =1~~~~~~~~~~~~~~~~~~1=
           ;%~~~~~~~~~~~~~~~~~~%;
           ,O~~~~~~~~~~~~~~~~~~O,
            O+~~~~~~~~~~~~~~~~+O
            +$~~~~~~~~~~~~~~~~$+
             %!~~~~~~~~~~~~~~!%
             ,@+~~~~~~~~~~~~+@,
              ~@!~~~~~~~~~~!@~
               ,%O+~~~~~~+O%,
                 +O@%%%%@O+
                   ,++++,
      
                   ,++++,
                 +O@%%%%@O+
               ,%O+~~~~~~+O%,
              ~@!~~~~~~~~~~!@~
             ,@+~~~~~~~~~~~~+@,
             %!~~~~~~~~~~~~~~!%
            +$~~~~~~~~~~~~~~~~O+
            O+~~~~~~~~~~~~~~~~+O
           ,O~~~~~~~~~~~~~~~~~~O,
           ;%~~~~~~~~~~~~~~~~~~%;
           +1~~~~~~~~~~~~~~~~~~1+
           =1~~~~~~~~~~~~~~~~~~1=
           ;%~~~~~~~~~~~~~~~~~~%;
           ,O~~~~~~~~~~~~~~~~~~O,
            O+~~~~~~~~~~~~~~~~+O
            +$~~~~~~~~~~~~~~~~$+
             %!~~~~~~~~~~~~~~!%
             ,@+~~~~~~~~~~~~+@,
              ~@!~~~~~~~~~~!@~
               ,%O+~~~~~~+O%,
                 +O@%%%%@O+
                   ,++++,
      

      Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

      G Offline
      G Offline
      Gary R Wheeler
      wrote on last edited by
      #2

      I really want to see you interface one of your little IOT widgets to an old-school Centronics line printer, or even better, a KSR33 teletype!

      Software Zen: delete this;

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups