![]() Share the best GIFs now > With Tenor, maker of GIF Keyboard. ![]() This GIF by xponentialdesign has everything: art, loop, TRIPPY Source bit.ly. cdata, map, 'nodither' ) % create first image im ( 1, 1, 1, nFrames ) = 0 % allocate if currentCase = 1 if ~ isempty ( which ( 'plot2svg' )) plot2svg ( fullfile ( pathstr, ), figHandle ) % by Juerg Schwizer, See else disp ( 'plot2svg.m not available see ' ) end end end imtemp = rgb2ind ( f. Creating animation with multiple plots in Octave. On desktop right click the animation and select save. Black And White Art GIF by xponentialdesign. Function Spiral_of_black_and_white_squares () % source code for drawing the animation % % Jahobr fps = 50 = fileparts ( which ( mfilename )) % save files under the same name and at file location figHandle = figure ( 15124455 ) clf axesHandle = axes hold ( axesHandle, 'on' ) set ( figHandle, 'Units', 'pixel' ) set ( figHandle, 'position' ,) % set default set ( axesHandle, 'position' ,) % stetch axis bigger as figure, easy way to get rid of ticks set ( figHandle, 'GraphicsSmoothing', 'on' ) % requires at least version 2014b L ( 1 ) = 1 % definition, length of first square xyLim = * 0.99 xlim ( xyLim ) ylim ( xyLim ) % set axis limits axis equal drawnow for nSquaresTillRep = % ONLY EVEN NUMBERS! number of squares till the orientation repeats (90°) alpha = pi / 2 / nSquaresTillRep % +-a1-+=-b1-+ % I / -_ a1 % b1 / -+ % I / 90° /I 0.5 / 900 % squares smaller than a pixel patch (, col, 'EdgeColor', 'none' ) col = 1 - col % flip color x = % create next square y = % create next square end %% save animation xlim ( xyLim ) ylim ( xyLim ) % set axis limits drawnow % update figure window and execute pending callbacks pause ( 0.01 ) f = getframe ( figHandle ) if iFrame = 1 map = gray ( 8 ) % 8 colors % create color map % or use : = rgb2ind(f.cdata,4,'nodither') % im = rgb2ind ( f. Online photo editing with layers, layer masks, a workflow and user interface like a traditional desktop photo editor that provides you with the toolset and.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |