SVG-oriented Services - part #2
SVG-oriented services on TRQL Radio

SVG-oriented Services - part #2

I've introduced you to the possibility of creating stunning graphics using services. Instead, I should have talked about APIs, or better still, classes, that can help you build complex graphs. Of course, some of these classes are also exposed through services, true. I've shown you two: a service to create stars with n-branches and a service to create "flowers" with n-petals.

This time, I'm adding 2 services: the creation of signs and the creation of regular polygons with n vertices.

Signs

In concrete terms, we're talking about this kind of sign: a rectangle with rounded edges, variable text with a customizable font, variable size, optional rotation angle, colors ...


Sorry about the quality... LinkedIn does not allow SVGs to be included in articles.

You can test this service with our standard test procedure. You'll also see that this procedure allows you to download the freshly generated SVG.

https://trql.fm/test.marquee.service.php?text=Report%20available!&fill=orange&rotate=-45&h=50&w=200&font-fill=black&stroke-width=5&stroke=red&font-weight=normal&font-size=20px&font-family=Times%20New%20Roman        

Polygons

The creation of regular polygons is a matter of math, or trigonometry to be precise. I'll spare you: the basic classes do all the calculations for you. Calling the service can produce a result similar to:


This is what a polygon can look like

Test it yourself with our standard test procedure.

https://www.trql.fm/vaesoli!/?svg-polygon&stroke-width=0.2&radius=200&n=20&web=&id=mySVG        
Another polygon

Test it yourself with our test procedure.

https://www.trql.fm/vaesoli!/?svg-polygon&fill=orange&stroke-width=0.2&radius=200&n=10&id=mySVG        

In a next article, I'll show you how you can combined SVGs together, here below, a polygon and an arrow:


2 SVGs combined as one

Conclusions

I am extending the SVG-oriented services bit by bit. We now have 4 SVG-oriented services.

Should you want to be included in the beta-testers or even be part of the development of these solutions, drop me a line or two here on LinkedIn I will be more than happy to answer all the requests.

Such work is documented (see the catalog of services) and is used, in real projects: You're no guinea pig. I wish you all the best and ... above all ... no fuss!


要查看或添加评论,请登录

Patrick Boens的更多文章

  • Forging a ChatBot in the Digital Wilderness

    Forging a ChatBot in the Digital Wilderness

    In the relentless landscape of technological evolution, silence is not the absence of action—it is the crucible of…

  • AI Scanning an Invoice

    AI Scanning an Invoice

    This new issue, dedicated to ChatGPT and Sermo (my programming gateway to ChatGPT, Perplexity, and Claude 3.5 Sonnet)…

  • Software Engineers and AI

    Software Engineers and AI

    Through numerous articles written on the subject of artificial intelligence in the context of digital transformations…

  • Using templates to mimic sophisticated object

    Using templates to mimic sophisticated object

    The Power of Templates in IllicoDB3: Revolutionizing Database Structure In the realm of traditional databases, the…

  • More, Faster, Easier...

    More, Faster, Easier...

    In my previous article, I showed you how to create a small todo management app in record time. Now, based on this first…

  • AI at the Developers' Bedside

    AI at the Developers' Bedside

    Let's dive into the world of AI-powered app creation, showcasing just how effortless it can be to bring your ideas to…

    1 条评论
  • AI and IT

    AI and IT

    Here's the question I asked to "Sonar Huge", the AI model of Perplexity.ai: With the advent of AI taking by storm the…

  • The Imperative of AI in Digital Transformation Projects: A Wake-Up Call for Businesses

    The Imperative of AI in Digital Transformation Projects: A Wake-Up Call for Businesses

    In today's rapidly evolving digital landscape, companies that continue to approach their digital transformation and…

  • Data Migration Projects

    Data Migration Projects

    "Mise en bouche" My first interesting encounter with a data migration project dates back to 1999. The tech world was…

  • IllicoDB3 and AI

    IllicoDB3 and AI

    I have mentioned in the past that IllicoDB3 allows the use of artificial intelligence to generate code related to…

社区洞察

其他会员也浏览了