StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
gsom9000  
#1 Posted : Wednesday, February 23, 2022 4:38:40 PM(UTC)
gsom9000

Rank: Newbie

Reputation:

Groups: Approved
Joined: 9/18/2018(UTC)
Posts: 7

Hi, this is simple request: please, make an option for primary and secondary strokes separately to enable random color strokes.
Maybe its me, but sometimes i change stroke colors just because im getting tired of one. Also sometimes i just paint stroke all over the screen for no reason - its relaxing plus you don't have to switch to some painting software - strokes are already there! Same with my keyboard and mouse lighting effects - sometimes i change them just because. You know, nowadays there is RGB everywhere and would be cool if some of it will be implemented in the StrokesPlus.

Oh and another request - add an option to make stroke look like rainbow with no particular color selection.
Thanks!
Rob  
#2 Posted : Thursday, February 24, 2022 5:58:34 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,359
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 419 time(s) in 356 post(s)
I added a couple things in 0.5.6.5 to allow you to do this via script - the UI already has 8 million options as it is, lol.

Global Actions - Mouse Events - Release

Check the box, then use this script:
Code:

function randomColor() {
    var rnd = new System.Random();
    var newColor = new StrokesPlus.Types.WinApi.COLORREF();

    var r = rnd.Next(256);
    var g = rnd.Next(256);
    var b = rnd.Next(256);

    // Stroke colors cannot be pure white
    if(r == 255 && g == 255 && b == 255) {
        b = 254
    }

    newColor.R = r;
    newColor.G = g;
    newColor.B = b;

    return newColor;
}

// Primary stroke color
sp_config.PenColor = randomColor();

// Helps to keep the two colors different from each other
sp.Sleep(15); 

// Secondary stroke color
sp_config.SecondaryPenColor = randomColor();

// Refresh colors
sp.UpdateStrokeColors();

Every time you release a stroke button, the colors will be changed.

Rainbow is out of the question due the way the drawing happens via GDI, which is used for performance and memory purposes - not like some resource expensive DirectX layer or anything fancy.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.