User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: MMF2 Android Canvas Extension

  1. #1
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    213
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    MMF2 Android Canvas Extension

    Hello,

    Let me share with you the status of this nice android canvas extension;

    - Draw Circle x,y,radius,color and stroke width : working;
    - Draw line x,x,x1,y1,color and stoke witdth : working;
    - Clear canvas color : working
    - Draw rectangle : working
    - emboss mask : ok ... and so on

    Stay tuned for the beta version ;

    a_canvas.jpg

  2. #2
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    839
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Nice, looking forward to it!

  3. #3
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    213
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi ,
    Here screenshot of the android canvas extension, contain some basic draw, filters, and general commands;
    I will release soon maybe this night the first beta of this extension.
    Sorry the development takes time, i changed my pc for the 16 core cpu + 64 gigabtye of ram,
    i can now run, visual studio, mm25 android studio, paint net, xm play at the same time without limitation

    Screen shot:

    c1.png c2.png c3.png c4.png
    So please wait a bit;

    Regards

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Sloxone's Avatar
    Join Date
    Nov 2011
    Location
    France
    Posts
    564
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That's Great !!

  5. #5
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    213
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Ok , here is the first beta of this android canvas extension ;


    Copy : Acanvas.zip to : Clickteam Fusion Developer 2.5\Data\Runtime\Android
    Copy : Acanvas.mfx to : Clickteam Fusion Developer 2.5\Extensions\Unicode


    Start android project : API 30 , min level 8.0 target level 10.0
    Insert android canvas object and start to draw with basic commands like ; draw rectangle,circle,point, line ... etc

    Enjoy this beta version, some canvas function are not included cause api 19;

    Regards
    Attached files Attached files

  6. #6
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    213
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi ,

    This extension is like button the canvas view is always over the other objects, you can not use Z-order, however i've added all possible blend mode in api 19
    Add,Clear,Darken,Destination,Destination A-Top,Destination In,Destination Out,Destination Over,Lighten,Multiply,Overlay,Screen,Source,Source A-Top,Source In,Source Out,Source Over.

    With blend mode you can mix canvas view with the other objects can now visible.
    Added Paint shadow layer, you can draw with shadow colors etc..
    So wait a bit for the next release..

    Regards;

  7. #7
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    213
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Sorry I had already finished testing, so here is the latest version.
    Attached files Attached files

  8. #8
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    213
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Ok , here is the latest release of the android canvas extension.

    I have no time to test this nice extension , but this release is changed for accurate command this mean , you can not set circle color at draw circle command but
    do the same way of java canvas draw command, here are 2 screen shots to explain.

    To obtain that :
    Screenshot_20211201-201133_Runtime Android.jpg
    use events like so:
    c1.png

    And this one :

    Screenshot_20211201-201833_Runtime Android.jpg
    Events :
    c2.png

    The extensions files ;

    You can do really nice fx or draw with this extension; the only problem is alignement , and bitmap draw ... but i am working on it, so please replace Acanvas extensions files by this one.
    Enjoy ;
    Attached files Attached files

  9. #9
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    213
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    A little help for canvas extension users on android;
    If you want to draw White circle, here is an example of kotlin code converted to event;

    Code:
      paint.setColor(Color.parseColor("#FFFFFF"))        paint.setStrokeWidth(30F)
    
            paint.setStyle(Paint.Style.STROKE)
    
            var radius = 230F
    
     
            // draw circle
            canvas.drawCircle(320, 460, radius, paint)
    Start of Frame;

    Set Paint Color To "ffffff"
    Set Paint Stroke Width to 30
    Paint Set Style To Stroke Mode
    Draw Circle X = 320 Y = 460 Radius 230

    I will include 3 other commands soon.
    Canvas DrawARGB for the canvas background color
    Canvas DrawArc
    Canvas Draw Rounded Rectangle

    Missing command ; Paint antialias, Paint Dither and canvas draw path;
    Hope this will help ;

  10. #10
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    213
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi , this is the fourth release of Android canvas extension;

    Added : Draw triangle , Draw Rounded Rectangle and draw ARGB for canvas Background color here is the screen shot for
    example:

    canvas40.jpg Events to obtain excatly this : c40.png

    And extensions files :


    Regards
    Attached files Attached files

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Canvas Shader Android Exporter
    By Gigatron in forum Android Export Module 2.5
    Replies: 2
    Last Post: 21st September 2021, 06:32 PM
  2. HiDPI canvas tweaks possible?
    By ratty in forum HTML5 Export Module 2.5
    Replies: 1
    Last Post: 15th May 2019, 04:07 AM
  3. Your browser does not support Canvas
    By Koji_Kabuto in forum HTML5 Export Module 2.5
    Replies: 7
    Last Post: 24th April 2019, 09:18 PM
  4. Android extension in MMF2
    By kj2137 in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 17th August 2015, 08:13 PM
  5. How do you enlarge the canvas in the image editor?
    By TDA in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th July 2006, 09:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •