Quantcast
Channel: Tracing the Hues of an Image - Code Golf Stack Exchange
Browsing latest articles
Browse All 7 View Live

Answer by AJMansfield for Tracing the Hues of an Image

MATLAB, 136function t(g,x,y,l)m=imread(g);imshow(m); h=2*pi*rgb2hsv(m);h=h(:,:,1);s=streamline(cos(h),-sin(h),x,y,[1,l]);set(s,'LineW',1,'Co','k');Copied most of the setup and such from @sanchises, but...

View Article



Answer by wolfhammer for Tracing the Hues of an Image

JavaScript 414function P(G,x,y,l){I=new...

View Article

Image may be NSFW.
Clik here to view.

Answer by grovesNL for Tracing the Hues of an Image

Python, 203 172from scipy.misc import*def f(i,x,y,l): a=imread(i);Y,X,_=a.shape;o=a.copy()...

View Article

Image may be NSFW.
Clik here to view.

Answer by Sanchises for Tracing the Hues of an Image

MATLAB, 186 172The game is on! Call as t('YourImage.ext',123,456,100'), for an image of any type MATLAB supports, starting at (x,y)=(123,456) and maximum length 100. Initial positions cannot be exactly...

View Article

Image may be NSFW.
Clik here to view.

Answer by Kevin Workman for Tracing the Hues of an Image

Processing, 323 charactersvoid h(String f,float x,float y,float m){PImage i=loadImage(f);PImage i2=loadImage(f);while(m>0){color c=i.get((int)x,(int)y);float r=red(c)/255;float g=green(c)/255;float...

View Article


Image may be NSFW.
Clik here to view.

Answer by BrainSteel for Tracing the Hues of an Image

C with SDL, 549 516 bytesI'll start this party! For some reason, I felt like trying my hand at golf tonight. What you guys do is hard... If there's one thing I don't see any of on this site, it's SDL....

View Article

Image may be NSFW.
Clik here to view.

Tracing the Hues of an Image

Load an image into this stack snippet and move your mouse over it. A black curve that follows the hue angle, starting at your cursor point, will be drawn:<script...

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>