Dimenta Posted February 1 Share Posted February 1 It would be nice to have a wave tool to make sine and cos waves with different parameters: wave count, wave height, wave curve (curving in a fibonacci style) etc. Does anyone have approach for easily making a wavy line? My best solution is doing a line and turning on grid snap and then manually adding points and tweaking them to make a wavy line and then copy that line and fuse them together. Any other hacks? Bit Disappointed 1 Quote Link to comment Share on other sites More sharing options...
GarryP Posted February 1 Share Posted February 1 There might be something useful in one or more of these threads (found by searching the forums for wavy line ) https://forum.affinity.serif.com/index.php?/topic/190560-how-do-i-make-a-wavy-line-that-looks-like-water/ https://forum.affinity.serif.com/index.php?/topic/193656-wave-or-image-decorations-for-title/ https://forum.affinity.serif.com/index.php?/topic/189767-creating-zig-zags-and-wavy-lines-from-stroke/ https://forum.affinity.serif.com/index.php?/topic/157890-how-to-draw-this-wavy-line/ ...and others. Dimenta 1 Quote Link to comment Share on other sites More sharing options...
D.E. Main Posted March 24 Share Posted March 24 I agree with the original post. I have the ongoing need to have a pure sine curve. (...and nice to have, other function curves.) Manual approximation will not work for my need. (Modeling complex Guilloche patterns for a 1920's engraving rose engine.) I've tried manual approximations using the sine function and tracing images of sine and other functions manually. None of the above examples meet my needs. Bit Disappointed 1 Quote Link to comment Share on other sites More sharing options...
Bit Disappointed Posted March 24 Share Posted March 24 I know there are quite a few here and in the graphic industry as a whole who need algorithms, not workarounds for various types of line manipulation: Pure sine curves or other types Star spikes with a bit of random spike lengths And like me, a need for more randomly generated *gentle* variations in a curve, so it appears less mechanical and more organic; this probably falls more into a roughen/smoothen tool category. The pencil tool in sculpt mode is a poor substitue for roughen - it is not that great. Workarounds devour the time I need to earn money from my work and also take away some of the joy of creating. One thing to understand before developing, choosing not to develop, or advising is that some creatives produce hundreds of details to which workarounds simply cannot be applied. That is precisely why some programs have these features, which people outside the industry with little knowledge refer to as bloat. No, these are tools for others than those who complain about bloat. Quote I simply no longer believe that there are any professional graphic designers here. Everything follows suit. Just everything. Link to comment Share on other sites More sharing options...
Oufti Posted March 25 Share Posted March 25 2 hours ago, D.E. Main said: I have the ongoing need to have a pure sine curve. (...and nice to have, other function curves.) Manual approximation will not work for my need. (Modeling complex Guilloche patterns for a 1920's engraving rose engine.) It does not seem to be so easy to achieve… On a Mac (you didn't precise what OS you use…), there is an utility Grapher where I drew a curve y = sin x. When exported as a vectorial PDF and placed in Affinity, I see that the curve is now a group, divided in many curve segments, each with a lot of nodes (so close that they appear as a fat blue line). My conclusion is that PDF format (or Affinity alone?) can only offer a mathematical approximation of a sine curve. Perhaps is it though enough for your needs? Quote Affinity Suite 2.4 – Monterey 12.7.4 – MacBookPro 14" 2021 M1 Pro 16Go/1To I apologise for any approximations in my English. It is not my mother tongue. Link to comment Share on other sites More sharing options...
D.E. Main Posted March 25 Share Posted March 25 Yup - Sorry . I'm on a Windows laptop system. And I can do a graphical approximation but need a continuously scalable object. I'm hoping to exploit the built-in math functions of Affinity Designer. Oufti 1 Quote Link to comment Share on other sites More sharing options...
Pšenda Posted March 25 Share Posted March 25 5 hours ago, Oufti said: utility Grapher where I drew a curve y = sin x. For simple functions there is no need to use any special graphics/math programs, just download the curve as SVG from the internet - for example from wikipedia: Video_2024-03-25_084800.mp4 Oufti and Ldina 2 Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301 Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
fde101 Posted March 25 Share Posted March 25 4 hours ago, D.E. Main said: need a continuously scalable object. One problem you are going to face is that as soon as you export it to some vector format it will *always* be an approximation of some sort. Sine and cosine waves are interchangeable with each other, but neither can be perfectly represented as a Bézier curve, and they cannot be coded into most vector graphics formats. There is some discussion around this here: https://math.stackexchange.com/questions/4235124/getting-the-most-accurate-bezier-curve-that-plots-a-sine-wave PostScript does have a few trig functions, including sine and cosine, so PDF might as well (I can't seem to figure out the right search terms to identify this), so it *might* be possible to code this into a PDF, but other vector formats (such as SVG) would only be able to contain approximations. Oufti and Alfred 1 1 Quote Link to comment Share on other sites More sharing options...
Pšenda Posted March 25 Share Posted March 25 36 minutes ago, fde101 said: but neither can be perfectly represented as a Bézier curve Even a circle isn't a "circle" in Affinity 🙂 Alfred 1 Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301 Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
2ddpainter Posted March 25 Share Posted March 25 like to add, there are also a few online SVG wave generators and Processing could maybe also be helpful ? https://processing.org/examples/sinewave.html https://openprocessing.org/sketch/2096187 Quote Link to comment Share on other sites More sharing options...
D.E. Main Posted March 25 Share Posted March 25 RE discrete versus continuous functions - I understand. I rather need reasonably smooth approximations to a level of precision that fits the scale of my needs. I am modelling at the .01 mm scale. Better, non-tedious methods to approximate to allow this scale - or rather replicate to this level of precision. Thanks everyone - Dennis Quote Link to comment Share on other sites More sharing options...
D.E. Main Posted March 25 Share Posted March 25 9 hours ago, Pšenda said: For simple functions there is no need to use any special graphics/math programs, just download the curve as SVG from the internet - for example from wikipedia: Video_2024-03-25_084800.mp4 254.2 kB · 0 downloads RE wikipedia I did not find a SVG format or was able to Save As svg. But Thanks, I'll otherwise search for an SVG using Google. But thanks. Quote Link to comment Share on other sites More sharing options...
Ldina Posted March 25 Share Posted March 25 Here's another thread on making sine waves, which may or may not fill your needs. Quote 2017 15" MacBook Pro, 16 MB RAM, Ventura v13.6.6, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish Link to comment Share on other sites More sharing options...
Pšenda Posted March 25 Share Posted March 25 1 hour ago, D.E. Main said: wikipedia I did not find a SVG format or was able to Save As svg Right click on sine image inserted in my post, then Save image (SVG) as... Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301 Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
D.E. Main Posted March 25 Share Posted March 25 Darn. Well, I tried this which seems to work for now. I'll be testing the precision and tweaking as I progress. Downloaded a sine image Drew a straight line the length of the image Divided the line into segments for peaks & valleys Selected and moved alternating points to form a 'zigzag' line Smoothed the curves by selecting the nodes and using the Convert: Convert to Smooth Comparing this with the image by overlaying them, this is a fair starting point. I'll be checking against my engravings for which this will be used. Thanks everyone!!! Quote Link to comment Share on other sites More sharing options...
Pšenda Posted March 25 Share Posted March 25 4 minutes ago, D.E. Main said: I'll be testing the precision and tweaking as I progress. I don't really understand the reason to complicatedly create something that can be easily downloaded from the internet (or from my post) and it will still be an accurate vector sine wave within the required range. Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301 Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
D.E. Main Posted March 25 Share Posted March 25 Sorry, but I didn't see your post (to save your svg and hadn't found a reliable one from the internet yet.) before I was trying other methods. D Pšenda 1 Quote Link to comment Share on other sites More sharing options...
Ldina Posted March 25 Share Posted March 25 15 hours ago, Pšenda said: just download the curve as SVG from the internet - for example from wikipedia @Pšenda Thanks for the great tip! I downloaded sine curves, hyperbolas, parabolas, etc, (SVG format) from Wikipedia, edited and saved them as "Assets" for future use. Now, I can drag them as vector objects into Photo or Designer and manipulate them as I wish. Thanks for teaching me something cool that I didn't know. Awesome!! Pšenda 1 Quote 2017 15" MacBook Pro, 16 MB RAM, Ventura v13.6.6, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish Link to comment Share on other sites More sharing options...
Pšenda Posted March 26 Share Posted March 26 7 hours ago, Ldina said: edited and saved them as "Assets" for future use. Now, I can drag them as vector objects into Photo or Designer and manipulate them as I wish. I'm glad the advice was useful 🙂 If you have created an Asset of these basic math functions, and were willing to share it with other forum users, then you could put it in the Resource forum - I'm sure many users would appreciate it. Alternatively, Serif could take inspiration from this and add similar Assets as part of the installation. Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301 Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
Ldina Posted March 26 Share Posted March 26 5 hours ago, Pšenda said: If you have created an Asset of these basic math functions, and were willing to share it with other forum users, then you could put it in the Resource forum Good suggestion! I added them to Resources, per your recommendation. Pšenda 1 Quote 2017 15" MacBook Pro, 16 MB RAM, Ventura v13.6.6, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish Link to comment Share on other sites More sharing options...
Pšenda Posted March 26 Share Posted March 26 2 hours ago, Ldina said: Good suggestion! I added them to Resources, per your recommendation. Thanks. I'll just put the link here so that those interested don't have to look for it 🙂 Affinity Rat and Ldina 1 1 Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301 Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
Ldina Posted March 26 Share Posted March 26 1 minute ago, Pšenda said: Thanks. I'll just put the link here so that those interested don't have to look for it 🙂 Perfect! Thanks. Quote 2017 15" MacBook Pro, 16 MB RAM, Ventura v13.6.6, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.