Cita:
JSON son las siglas de JavaScript Object Notation y es una forma común de sistemas para serializar y deserializar datos para su almacenamiento o transmisión a través de una red. El formato de un objeto JSON es muy similar a la forma en que un diccionario de Python se ve. De hecho, son casi idénticos.
Cita:{"Anna": 10000, "Barney": 9000, "Jane": 8000, "Fred": 7000}


![[Imagen: 39GTFPr.png]](https://i.imgur.com/39GTFPr.png)

Private gambas As New Image
Private python As New Image
Public Sub Form_Open()
gambas = Image.Load("Gambas3.png")
python = Image.Load("python3.png")
End
Public Sub DrawingArea1_Draw()
Paint.DrawImage(gambas, 0, 0, gambas.W, gambas.H, Slider1.Value / 100)
Paint.DrawImage(python, 0, 0, python.W, python.H, 1 - Slider1.Value / 100)
End
Public Sub Slider1_Change()
DrawingArea1.Refresh
EndCita:
Opacity : the opacity used for drawing the image, between 0.0 (fully transparent, nothing is drawn) and 1.0 (fully opaque). By default, the image is drawn fully opaque.
![[Imagen: vvgL5i7.png]](https://i.imgur.com/vvgL5i7.png)

'Índice de velocidad negativo. El texto se desplaza a la izquierda
'Índice de velocidad positivo. El texto se desplaza a la derecha
Private velocidad As Integer[] = [3, 0]Const TEXTO As String = "GAMBAS BASIC"
Const TAMAFUENTE As Integer = 36
Private posicion As Integer[] = [0, 0]
'Índice de velocidad negativo. El texto se desplaza a la izquierda
'Índice de velocidad positivo. El texto se desplaza a la derecha
Private velocidad As Integer[] = [3, 0]
Private fuente As New Font
Private lineacentralactiva As Boolean = False 'Activamos/Desactivamos linea horizontal que divide DrawingArea
Public Sub Form_Open()
Dim ancho As Integer
Dim alto As Integer
With Me
.Title = "MARQUESINA"
.Background = Color.Black
.Center()
End With
Pizarra.Background = Color.Black
fuente.Name = "Monospace"
fuente.Size = TAMAFUENTE
ancho = fuente.TextWidth(TEXTO)
alto = fuente.TextHeight(TEXTO)
posicion[1] = (Pizarra.H - alto) / 2
Timer1.Delay = 16
Timer1.Start
End
Public Sub DibujarTextoCentrado()
Dim RS As RectF
If lineacentralactiva Then
Paint.LineWidth = 1
Paint.MoveTo(0, Pizarra.H / 2)
Paint.LineTo(Pizarra.W, Pizarra.H / 2)
Paint.Stroke
Endif
Paint.Translate(posicion[0], posicion[1])
Paint.Font = Font[fuente.Name & "," & Str(fuente.Size)]
Paint.Background = Color.White
Paint.AntiAlias = True
RS = Paint.TextSize(TEXTO)
Paint.Text(TEXTO, RS.X, RS.Y, RS.Width, RS.Height)
posicion[0] += velocidad[0]
posicion[1] += velocidad[1]
If velocidad[0] < 0 Then
'El texto reaaparecerá por la derecha del DrawingArea
If posicion[0] + RS.W < 0 Then
'Restamos al ancho del DrawingArea el ancho de una letra
posicion[0] = Pizarra.W - Paint.TextSize("G").W
Endif
Else If velocidad[0] > 0 Then
'El texto reaaparecerá por la izquierda del DrawingArea
If posicion[0] + Paint.TextSize("G").W > Pizarra.W Then
'Restamos al ancho de una letra el ancho total del texto
posicion[0] = Paint.TextSize("G").W - RS.W
Endif
Endif
Paint.Fill
End
Public Sub Pizarra_Draw()
DibujarTextoCentrado
End
Public Sub Timer1_Timer()
Pizarra.Refresh
End