%% Create a RoundButton Instance
% After creating and saving RoundButton.m and RoundButton.html, create an instance of the RoundButton class in a UI figure.
%
% Specify the Color, FontColor, and the ButtonPushedFcn callback properties as name-value arguments.

fig = uifigure('Position',[200 200 300 300]);
btn = RoundButton(fig, ...
    'Color','red', ...
    'FontColor','white', ...
    'ButtonPushedFcn',@(o,e)disp('Clicked'));

%
% Click the button. The Command Window displays Clicked.
% Copyright 2020 The MathWorks, Inc.