Jump to content

Reptillian

Members
  • Posts

    904
  • Joined

  • Last visited

  • Days Won

    9

Reptillian last won the day on April 17

Reptillian had the most liked content!

3 Followers

About Reptillian

Recent Profile Visitors

4,034 profile views

Reptillian's Achievements

Mentor

Mentor (12/14)

  • Very Popular Rare
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

350

Reputation

  1. As soon as I have figured out how to work with HSV in content of PDN C# development, I was able to almost complete the plugin. For now, I am releasing as a test plugin, and there is only one more thing to complete functionality-wise (No, I won't bother getting the plugin to automatically disable colors on circumstances), and that is getting the seed to work. I don't know how to fix that. Here's the current build of the Random Gradient Bars plugin. Let me know if there is any bugs outside of those two I mentioned. Random Gradient Bars.zip Source Code:
  2. Made random color mode #1. Random color mode #2 will come next.
  3. Here's the codelab code for starters. You can use 1/zoom instead for zoom out. #region UICode DoubleSliderControl zoom = 4; // [1,10] Zoom Level #endregion void Render(Surface dst, Surface src, Rectangle rect) { // Delete any of these lines you don't need Rectangle selection = EnvironmentParameters.SelectionBounds; double cx = (src.Width - 1) / 2; double cy = (src.Height - 1) / 2; double ix,iy,nx,ny,tx,ty; int fx,fy; for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; for (int x = rect.Left; x < rect.Right; x++) { ix=(double)(x)-cx; iy=(double)(y)-cy; nx=ix*zoom; ny=iy*zoom; tx=nx-ix; ty=ny-iy; fx=Math.Min(Math.Max(x+(int)(tx),0),src.Width - 1 ); fy=Math.Min(Math.Max(y+(int)(ty),0),src.Height - 1 ); dst[x,y] = src[fx,fy]; } } }
  4. No, I won't do these, it would take a different method to support these features. Particularly, a interactive filter, and that's way too much work. Here, I did it for gmic. One can tell how the source code works easily. - https://github.com/dtschump/gmic-community/commit/9bc859ffe83cb73de0c4a0f9ff3505d4705fe089
  5. I think what @Cioss is to use pixel size instead of divisions by canvas. I made a quick code to do what @Cioss wants. Though, I'm not sure if @Cioss would be ok with installing extra dependency for g'mic-pdn plugins or g'mic. I don't know how to do pure c# version. So, my question to the OP: Is the below picture is what you're looking for. 24,24 are inputs, and they're based in px rather than division. Input: gmic sp cat +rep_jumble_by_px 24,24 Output:
  6. Just leaving this here - More work in Lyapunov.
  7. I think it is spam. Nothing seem to be about trying to stimulate Diamond Painting in Paint.NET.
  8. Paint.NET may be the name of the program, but it isn't specifically for diamond painting. However, it is possible to make a plugin to stimulate the aesthetics of it.
  9. Someone requested that I release Dungeon Tiles filter. I released it. Here's the preview:
  10. G'MIC - > Testing -> Reptorian -> Transfer Colors [Reduced Colors] Never mind, it doesn't do self-color reduction. I could however make a g'mic filter that does that.
  11. Strange color with the original code. Change color_space into 1, and you'll see what I mean. I'm not getting the desired result with this. dst[x,y]=ColorBgra.FromBgr( (byte)((int)(lerp((double)(sc_a_B),(double)(sc_b_B),final_gradient))), (byte)((int)(lerp((double)(sc_a_G),(double)(sc_b_G),final_gradient))), (byte)((int)(lerp((double)(sc_a_R),(double)(sc_b_R),final_gradient))) ); There is suppose to be a transition. There is not a transition. This code does work better than the first one, however, see what I mean? : EDIT : I solve it. lerp formula was wrong. So sorry about that. This is the fix. double lerp(double a, double b, double t){ return a * (1 - t) + b * t ; }
  12. This is more of a continuation of the other thread as that problem has been solved. This is the complete line of code that is giving me a problem dst[x,y]=ColorBgra.FromBgra((byte)(lerp((double)(space_color_a.B),(double)(space_color_b.B),final_gradient)),(byte)(lerp((double)(space_color_a.G),(double)(space_color_b.G),final_gradient)),(byte)(lerp((double)(space_color_a.R),(double)(space_color_b.R),final_gradient)),(byte)(spaces ? 255 : 0)); What I"m trying to achieve is a colored gradient effect depending on final_gradient. Also, HsvColor.ToRgb() would the correct route for converting HSV (The code has random Hue as option)? There's also the observation that reseed does nothing, but that's for another day.
  13. I had released several gmic-c# projects here in the plugin section. Search Author:Reptillian in plugin index, and you'll see my released gmic c# projects. Which one are you looking for?
×
×
  • Create New...