i'm trying to achieve something similar to this in illustrator

enter image description here

  • How can i spray a symbol around a shape
  • How can i spray within my symbol (just like the example in the image)
  • I would only know to do that manually. The only other option that comes to mind is scripting. Looking at the edge of the infinity symbol and how the dots follow the shape from then on, I wouldn't be surprised if they did it by first applying a dotted stroke to the symbol, then expanded and misaligned them a bit and continued to manually add dots around the symbol.
    – Joonas
    Commented Feb 17, 2016 at 8:19
  • I tried to do it manually, but it takes sooo much time Commented Feb 17, 2016 at 9:56

2 Answers 2


If your in a hurry and need this today then use something called rejection sampling. Idea is to have any number of random samples and then reject the ones that do not fall into your criteria. Here's how you could approach this.

  1. Make a random field

    enter image description here

  2. make logo

    enter image description here

  3. make logo transparent and run transparency flattener

    enter image description here

  4. subtract and eliminate all paths with more then 4 points.

enter image description here

Now the effect does work better if you have a pattern on the edge of the logo. Like in your example so store the logo path and subtract slightly offset version. and add a scatter stroked edge that has same symbol for more definition.

enter image description here

Final Image: The result after some manual tweaking for a few seconds and a ring of edge points done with a scatter brush.

This is also pretty easy to script.

  • wow, never thought of that! i will try it now. thank you! Commented Feb 17, 2016 at 11:28
  • Do you have any links to a video tutorial or smth? I'm having difficulties with steps 3-4 Commented Feb 17, 2016 at 11:33
  • @user2093301 No, i did this just now took me about 20 minutes to do this and write the document (no i hadn't done this before). But would have been faster if i wouldn't have had to experiment. In 20:20 hindsight you could just do the deletion with pathfinder. I did the selection with a script but its pretty quick to do manually once the bulk of the problems have been eliminated.
    – joojaa
    Commented Feb 17, 2016 at 11:39
  • i know that you can define it from Edit -> Transparency Flattener Presets, but how do you run it Commented Feb 17, 2016 at 11:41
  • @user2093301 Object -> Flatten Transparency
    – joojaa
    Commented Feb 17, 2016 at 11:42

Please use simple strokes of the same shapes but with dotted lines (alternative stroke shapes in the strokes panel). Very simple. Later on, you can provide them the gradient.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.