![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
github.com/spider1998/go-word-cloud
https://gitee.com/bangbaoshi/wordcloud
cd $GOPATH/src/gitee.com/bangbaoshi
git clone https://gitee.com/bangbaoshi/wordcloud.git
cd wordcloud
go run boot/main.go
通过以上四步即可在imgs目录中生成文字云图片(查看imgs/out.png)
boot/main.go中已经简单介绍了使用方法
package main
import (
"image/color"
"gitee.com/bangbaoshi/wordcloud"
)
func renderNow() {
//需要写入的文本数组
textList := []string{"恭喜", "发财", "万事", "如意"}
//文本角度数组
angles := []int{0, 15, -15, 90}
//文本颜色数组
colors := []*color.RGBA{
&color.RGBA{0x0, 0x60, 0x30, 0xff},
&color.RGBA{0x60, 0x0, 0x0, 0xff},
&color.RGBA{0x73, 0x73, 0x0, 0xff},
}
//设置对应的字体路径,和输出路径
render := wordcloud_go.NewWordCloudRender(60, 8,
"./fonts/xin_shi_gu_yin.ttf",
"./imgs/tiger.png", textList, angles, colors, "./imgs/out.png")
//开始渲染
render.Render()
}
func main() {
renderNow()
}
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.