预览如图
注释
调参改变下面这里的代码 text=“”位置 改成自己想要的文字, 不想要可以直接去掉代码
text:想要表现的文本 fg:文字颜色 bg文字的背景颜色(其实有瑕疵的因为文字是更上一层的图层会有覆盖)
text1 = Label(root, text="By SilverPriest ᏊˊꈊˋᏊ", font=("Helvetica", 18), fg="#c12bec",bg = "black")
text1.place(x=650, y=500)
text2 = Label(root, text="爱你",font = ("Helvetica", 18), fg = "#c12bec" ,bg = "black") #
text2.place(x=460, y=350)
代码
# Beating Heart
# default input
import random
from math import sin, cos, pi, log
from tkinter import *
CANVAS_WIDTH = 980 # frame_width
CANVAS_HEIGHT = 720 # frame_height
CANVAS_CENTER_X = CANVAS_WIDTH / 2 # frame_center_x
CANVAS_CENTER_Y = CANVAS_HEIGHT / 2 # center_y
IMAGE_ENLARGE = 11 # ratio
# color list
HEART_COLOR_LIST = ["#d974ff", "#be77fa", "#a478f3", "#8b78ea", "#7377e0",
"#4871c6", "#5c74d3", "#fa6ea9", "#dc6db1", "#ec2c2c",
"#e91e41", "#8b4593", "#2bd