• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can i draw gradient using drawbot to create a arbitrary effect ui?

Community Beginner ,
Dec 01, 2015 Dec 01, 2015

Copy link to clipboard

Copied

Hey guys, I'm trying to draw a color wheel on my effect ui, I'm using drawbot, but seems to me that I can only create solid color pen or brush, is there a way to draw gradient fill?

I'm thinking using image element may be a solution, I can create a color wheel png image, then draw the image on my effect panel. but what if I want to draw dynamic gradient color like this,

屏幕快照 2015-12-02 上午9.26.05.png

TOPICS
SDK

Views

510

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 02, 2015 Dec 02, 2015

no such API function.

you'll have to draw it into a buffer by any means, and

use NewImageFromBuffer() to convert to a drawbot image.

Votes

Translate

Translate
Community Expert ,
Dec 02, 2015 Dec 02, 2015

Copy link to clipboard

Copied

LATEST

no such API function.

you'll have to draw it into a buffer by any means, and

use NewImageFromBuffer() to convert to a drawbot image.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines